aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-01-10 01:11:45 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-01-10 01:11:45 +0000
commit92a2598f9744881a99f44f119bb0eb6ccde36c6c (patch)
treed7ca45d6c4a48156cff396d9889637e984ad64ed /src/backend/tcop/postgres.c
parent4d72af6cb31baa8d92bc86955ea7e5c4bc57eaad (diff)
downloadpostgresql-92a2598f9744881a99f44f119bb0eb6ccde36c6c.tar.gz
postgresql-92a2598f9744881a99f44f119bb0eb6ccde36c6c.zip
The result of getopt() should be compared to -1, not EOF, per
pgsql-hackers discussion of this date.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 68ae795e6a7..0609e1e9531 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.244 2002/01/01 23:16:22 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.245 2002/01/10 01:11:45 tgl Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -1165,7 +1165,7 @@ PostgresMain(int argc, char *argv[], const char *username)
secure = true;
ctx = PGC_POSTMASTER;
- while ((flag = getopt(argc, argv, "A:B:c:CD:d:Eef:FiNOPo:p:S:st:v:W:x:-:")) != EOF)
+ while ((flag = getopt(argc, argv, "A:B:c:CD:d:Eef:FiNOPo:p:S:st:v:W:x:-:")) != -1)
switch (flag)
{
case 'A':
@@ -1626,7 +1626,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.244 $ $Date: 2002/01/01 23:16:22 $\n");
+ puts("$Revision: 1.245 $ $Date: 2002/01/10 01:11:45 $\n");
}
/*