summaryrefslogtreecommitdiff
path: root/contrib/oid2name
diff options
context:
space:
mode:
authorTom Lane2002-01-10 01:11:45 +0000
committerTom Lane2002-01-10 01:11:45 +0000
commit92a2598f9744881a99f44f119bb0eb6ccde36c6c (patch)
treed7ca45d6c4a48156cff396d9889637e984ad64ed /contrib/oid2name
parent4d72af6cb31baa8d92bc86955ea7e5c4bc57eaad (diff)
The result of getopt() should be compared to -1, not EOF, per
pgsql-hackers discussion of this date.
Diffstat (limited to 'contrib/oid2name')
-rw-r--r--contrib/oid2name/oid2name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/oid2name/oid2name.c b/contrib/oid2name/oid2name.c
index 2d4e2b8d0f8..dfd261240ac 100644
--- a/contrib/oid2name/oid2name.c
+++ b/contrib/oid2name/oid2name.c
@@ -67,7 +67,7 @@ get_opts(int argc, char **argv, struct options * my_opts)
my_opts->remotepass = 0;
/* get opts */
- while ((c = getopt(argc, argv, "H:p:U:P:d:t:o:xh?")) != EOF)
+ while ((c = getopt(argc, argv, "H:p:U:P:d:t:o:xh?")) != -1)
{
switch (c)
{