aboutsummaryrefslogtreecommitdiff
path: root/src/backend/bootstrap/bootstrap.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/bootstrap/bootstrap.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/bootstrap/bootstrap.c')
-rw-r--r--src/backend/bootstrap/bootstrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c
index 076b31fb17e..cd118d30d74 100644
--- a/src/backend/bootstrap/bootstrap.c
+++ b/src/backend/bootstrap/bootstrap.c
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.119 2001/10/25 05:49:22 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.120 2002/01/10 01:11:45 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -250,7 +250,7 @@ BootstrapMain(int argc, char *argv[])
* variable */
}
- while ((flag = getopt(argc, argv, "B:dD:Fo:px:")) != EOF)
+ while ((flag = getopt(argc, argv, "B:dD:Fo:px:")) != -1)
{
switch (flag)
{