From 92a2598f9744881a99f44f119bb0eb6ccde36c6c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 10 Jan 2002 01:11:45 +0000 Subject: The result of getopt() should be compared to -1, not EOF, per pgsql-hackers discussion of this date. --- contrib/oid2name/oid2name.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/oid2name/oid2name.c') 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) { -- cgit v1.2.3