Commit 84a0445c authored by Tom Lane's avatar Tom Lane

Change a couple of exit(0) to return 0 to suppress complaints from

not-too-bright compilers.  Per buildfarm results.
parent 7176e60b
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* *
* Originally by * Originally by
* B. Palmer, bpalmer@crimelabs.net 1-17-2001 * B. Palmer, bpalmer@crimelabs.net 1-17-2001
* $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.30 2006/10/19 20:38:48 tgl Exp $ * $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.31 2007/07/15 22:54:20 tgl Exp $
*/ */
#include "postgres_fe.h" #include "postgres_fe.h"
...@@ -575,5 +575,5 @@ main(int argc, char **argv) ...@@ -575,5 +575,5 @@ main(int argc, char **argv)
sql_exec_dumpalldbs(pgconn, my_opts); sql_exec_dumpalldbs(pgconn, my_opts);
PQfinish(pgconn); PQfinish(pgconn);
exit(0); return 0;
} }
...@@ -605,8 +605,7 @@ main(int argc, char **argv) ...@@ -605,8 +605,7 @@ main(int argc, char **argv)
*/ */
if (triggered) if (triggered)
exit(1); /* Normal exit, with non-zero */ exit(1); /* Normal exit, with non-zero */
else
{
/* /*
* Once we have restored this file successfully we * Once we have restored this file successfully we
* can remove some prior WAL files. * can remove some prior WAL files.
...@@ -617,6 +616,6 @@ main(int argc, char **argv) ...@@ -617,6 +616,6 @@ main(int argc, char **argv)
*/ */
if (RestoreWALFileForRecovery()) if (RestoreWALFileForRecovery())
CustomizableCleanupPriorWALFiles(); CustomizableCleanupPriorWALFiles();
exit(0);
} return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment