diff --git a/util/uhdm-cmp.cpp b/util/uhdm-cmp.cpp index 3e8c6bc7..809ef10f 100644 --- a/util/uhdm-cmp.cpp +++ b/util/uhdm-cmp.cpp @@ -39,7 +39,7 @@ static int32_t usage(const char *progName) { << " = 0, if input files are equal" << std::endl << " < 0, if input files are not equal" << std::endl << " > 0, for any failures" << std::endl; - return 1; + return 0; } int32_t main(int32_t argc, char **argv) { diff --git a/util/uhdm-dump.cpp b/util/uhdm-dump.cpp index df90abee..9df71e60 100644 --- a/util/uhdm-dump.cpp +++ b/util/uhdm-dump.cpp @@ -83,7 +83,7 @@ static int32_t usage(const char *progname) { "\nIf golden file is given to compare, exit code represent if output " "matches.\n"); - return 1; + return 0; } int32_t main(int32_t argc, char **argv) { diff --git a/util/uhdm-hier.cpp b/util/uhdm-hier.cpp index df26dccd..9c4269b0 100644 --- a/util/uhdm-hier.cpp +++ b/util/uhdm-hier.cpp @@ -42,7 +42,7 @@ static int32_t usage(const char* progname) { fprintf(stderr, "Usage:\n%s [options] ?--line?\n", progname); fprintf(stderr, "Reads UHDM binary representation and prints hierarchy tree.\n"); - return 1; + return 0; } int32_t main(int32_t argc, char** argv) { diff --git a/util/uhdm-lint.cpp b/util/uhdm-lint.cpp index 705caa07..8db3dc12 100644 --- a/util/uhdm-lint.cpp +++ b/util/uhdm-lint.cpp @@ -36,7 +36,7 @@ static int32_t usage(const char *progName) { << std::endl << std::endl << "Exits with code" << std::endl; - return 1; + return 0; } class MyLinter : public UHDM::VpiListener {