summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2007-07-15 22:54:21 +0000
committerTom Lane2007-07-15 22:54:21 +0000
commit3bc6f1d6afdabb28284450e96067382d744759e9 (patch)
tree38f72158e79e32aeba7dfafd6d98fce580597a18
parente6a30c2c4eb63be5e7155ccec1ea9d1aa964210d (diff)
Change a couple of exit(0) to return 0 to suppress complaints from
not-too-bright compilers. Per buildfarm results.
-rw-r--r--contrib/oid2name/oid2name.c2
-rw-r--r--contrib/pg_standby/pg_standby.c27
2 files changed, 14 insertions, 15 deletions
diff --git a/contrib/oid2name/oid2name.c b/contrib/oid2name/oid2name.c
index bb6444600d..eb1d9d84fa 100644
--- a/contrib/oid2name/oid2name.c
+++ b/contrib/oid2name/oid2name.c
@@ -575,5 +575,5 @@ main(int argc, char **argv)
sql_exec_dumpalldbs(pgconn, my_opts);
PQfinish(pgconn);
- exit(0);
+ return 0;
}
diff --git a/contrib/pg_standby/pg_standby.c b/contrib/pg_standby/pg_standby.c
index bb885384c3..7eb4a51ba4 100644
--- a/contrib/pg_standby/pg_standby.c
+++ b/contrib/pg_standby/pg_standby.c
@@ -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;
}