diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 1188d02b7dd23a76cd04270c9899de06aacca58c..0693d9695fe3c9d7b76696879789f7bf310ebb60 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ @@ -2031,6 +2031,8 @@ main() PQfinish(conn); /* fclose(debug); */ + return 0; + } @@ -2152,6 +2154,7 @@ main() /* close the connection to the database and cleanup */ PQfinish(conn); + return 0; } @@ -2334,6 +2337,7 @@ main() /* close the connection to the database and cleanup */ PQfinish(conn); + return 0; } diff --git a/src/test/examples/testlibpq.c b/src/test/examples/testlibpq.c index f967278b583ab61821660eed7fbdc9a53fa6db40..aa7f5a2e9e1699adcdc4b3adbae875feafc0ef61 100644 --- a/src/test/examples/testlibpq.c +++ b/src/test/examples/testlibpq.c @@ -130,5 +130,5 @@ main() fclose(debug); #endif /* DEBUG */ - exit(0); + return 0; } diff --git a/src/test/examples/testlo.c b/src/test/examples/testlo.c index 8dd244de9ac61f478af5a7f1a6e0feb26c8a8c0e..7700ce78833d90c975b8f096388be5b1e155b2e7 100644 --- a/src/test/examples/testlo.c +++ b/src/test/examples/testlo.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.14 2000/01/26 05:58:49 momjian Exp $ + * $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.15 2000/04/25 16:39:07 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -248,5 +248,5 @@ main(int argc, char **argv) res = PQexec(conn, "end"); PQclear(res); PQfinish(conn); - exit(0); + return 0; } diff --git a/src/test/examples/testlo2.c b/src/test/examples/testlo2.c index 063f5daeb713d5bf66f14ce0f835c7b777563ef9..fd1a517b2de303f89ccb600a575343679e1834d5 100644 --- a/src/test/examples/testlo2.c +++ b/src/test/examples/testlo2.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.13 2000/01/26 05:58:49 momjian Exp $ + * $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.14 2000/04/25 16:39:07 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -241,5 +241,5 @@ main(int argc, char **argv) res = PQexec(conn, "end"); PQclear(res); PQfinish(conn); - exit(0); + return 0; }