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

Commit1234981

Browse files
committed
Fix libpq example return values
1 parent56e09dd commit1234981

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

‎doc/src/sgml/libpq.sgml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.36 2000/03/31 03:27:40 thomas Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.37 2000/04/25 16:39:07 momjian Exp $
33
-->
44

55
<chapter id="libpq-chapter">
@@ -2031,6 +2031,8 @@ main()
20312031
PQfinish(conn);
20322032

20332033
/* fclose(debug); */
2034+
return 0;
2035+
20342036
}
20352037
</programlisting>
20362038
</para>
@@ -2152,6 +2154,7 @@ main()
21522154
/* close the connection to the database and cleanup */
21532155
PQfinish(conn);
21542156

2157+
return 0;
21552158
}
21562159
</programlisting>
21572160
</para>
@@ -2334,6 +2337,7 @@ main()
23342337
/* close the connection to the database and cleanup */
23352338
PQfinish(conn);
23362339

2340+
return 0;
23372341
}
23382342
</programlisting>
23392343
</para>

‎src/test/examples/testlibpq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,5 @@ main()
130130
fclose(debug);
131131
#endif/* DEBUG */
132132

133-
exit(0);
133+
return0;
134134
}

‎src/test/examples/testlo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.14 2000/01/26 05:58:49 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.15 2000/04/25 16:39:07 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -248,5 +248,5 @@ main(int argc, char **argv)
248248
res=PQexec(conn,"end");
249249
PQclear(res);
250250
PQfinish(conn);
251-
exit(0);
251+
return0;
252252
}

‎src/test/examples/testlo2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.13 2000/01/26 05:58:49 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.14 2000/04/25 16:39:07 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -241,5 +241,5 @@ main(int argc, char **argv)
241241
res=PQexec(conn,"end");
242242
PQclear(res);
243243
PQfinish(conn);
244-
exit(0);
244+
return0;
245245
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp