Change a couple of exit(0) to return 0 to suppress complaints from
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Jul 2007 22:54:21 +0000 (22:54 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Jul 2007 22:54:21 +0000 (22:54 +0000)
not-too-bright compilers.  Per buildfarm results.

contrib/oid2name/oid2name.c
contrib/pg_standby/pg_standby.c

index bb6444600d4535cd6777eda07e7f62fab35eaafd..eb1d9d84fa6e2a1373bfa969a7593a69081ca8f8 100644 (file)
@@ -575,5 +575,5 @@ main(int argc, char **argv)
        sql_exec_dumpalldbs(pgconn, my_opts);
 
        PQfinish(pgconn);
-       exit(0);
+       return 0;
 }
index bb885384c3e0ae370066e983a3aca0635fac8103..7eb4a51ba4cc19ceab646a2d60f2e13a8796b990 100644 (file)
@@ -605,18 +605,17 @@ main(int argc, char **argv)
         */
        if (triggered)
                exit(1);                        /* Normal exit, with non-zero */
-       else
-       {
-               /* 
-                * Once we have restored this file successfully we
-                * can remove some prior WAL files.
-                * If this restore fails we musn't remove any
-                * file because some of them will be requested again
-                * immediately after the failed restore, or when
-                * we restart recovery.
-                */
-               if (RestoreWALFileForRecovery())
-                       CustomizableCleanupPriorWALFiles();
-               exit(0);
-       }
+
+       /* 
+        * Once we have restored this file successfully we
+        * can remove some prior WAL files.
+        * If this restore fails we musn't remove any
+        * file because some of them will be requested again
+        * immediately after the failed restore, or when
+        * we restart recovery.
+        */
+       if (RestoreWALFileForRecovery())
+               CustomizableCleanupPriorWALFiles();
+
+       return 0;
 }