diff options
author | kevlo <kevlo@FreeBSD.org> | 2007-02-05 07:35:23 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2007-02-05 07:35:23 +0000 |
commit | cf67f3127e8978432bb80927bce24d8c26e438c8 (patch) | |
tree | 60ca758783787b2fc287d734e5bd467de5f6c06f /usr.bin/ncplist | |
parent | 4881bd38e2f4061efa354e25c1c66cc0275393a7 (diff) | |
download | FreeBSD-src-cf67f3127e8978432bb80927bce24d8c26e438c8.zip FreeBSD-src-cf67f3127e8978432bb80927bce24d8c26e438c8.tar.gz |
getopt(3) returns -1, not EOF when out of args.
Diffstat (limited to 'usr.bin/ncplist')
-rw-r--r-- | usr.bin/ncplist/ncplist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ncplist/ncplist.c b/usr.bin/ncplist/ncplist.c index e91f231..e2c2ce4 100644 --- a/usr.bin/ncplist/ncplist.c +++ b/usr.bin/ncplist/ncplist.c @@ -380,7 +380,7 @@ main(int argc, char *argv[]) bzero(args, sizeof(args)); what = LO_NONE; - while ((opt = getopt(argc, argv, "h")) != EOF) { + while ((opt = getopt(argc, argv, "h")) != -1) { switch (opt) { case 'h': case '?': help(); |