Unify use of error codes across all exit statements

This commit is contained in:
Greg Smith
2011-02-10 17:49:34 -05:00
parent 7e7c45c61d
commit 78b925ea54
8 changed files with 49 additions and 25 deletions

View File

@@ -101,12 +101,12 @@ main(int argc, char **argv)
if (strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-?") == 0)
{
help(progname);
exit(0);
exit(SUCCESS);
}
if (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-V") == 0)
{
printf("%s (PostgreSQL) " PG_VERSION "\n", progname);
exit(0);
exit(SUCCESS);
}
}