Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit84a0445

Browse files
committed
Change a couple of exit(0) to return 0 to suppress complaints from
not-too-bright compilers. Per buildfarm results.
1 parent7176e60 commit84a0445

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

‎contrib/oid2name/oid2name.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Originally by
66
* B. Palmer, bpalmer@crimelabs.net 1-17-2001
7-
* $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.30 2006/10/19 20:38:48 tgl Exp $
7+
* $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.31 2007/07/15 22:54:20 tgl Exp $
88
*/
99
#include"postgres_fe.h"
1010

@@ -575,5 +575,5 @@ main(int argc, char **argv)
575575
sql_exec_dumpalldbs(pgconn,my_opts);
576576

577577
PQfinish(pgconn);
578-
exit(0);
578+
return0;
579579
}

‎contrib/pg_standby/pg_standby.c

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -605,18 +605,17 @@ main(int argc, char **argv)
605605
*/
606606
if (triggered)
607607
exit(1);/* Normal exit, with non-zero */
608-
else
609-
{
610-
/*
611-
* Once we have restored this file successfully we
612-
* can remove some prior WAL files.
613-
* If this restore fails we musn't remove any
614-
* file because some of them will be requested again
615-
* immediately after the failed restore, or when
616-
* we restart recovery.
617-
*/
618-
if (RestoreWALFileForRecovery())
619-
CustomizableCleanupPriorWALFiles();
620-
exit(0);
621-
}
608+
609+
/*
610+
* Once we have restored this file successfully we
611+
* can remove some prior WAL files.
612+
* If this restore fails we musn't remove any
613+
* file because some of them will be requested again
614+
* immediately after the failed restore, or when
615+
* we restart recovery.
616+
*/
617+
if (RestoreWALFileForRecovery())
618+
CustomizableCleanupPriorWALFiles();
619+
620+
return0;
622621
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp