From 3aec1640dfcf063d1ba62f7dcbb14a1c363fd828 Mon Sep 17 00:00:00 2001 From: imp Date: Sun, 23 May 1999 23:24:26 +0000 Subject: getopt(3) returns -1 not EOF. --- bin/chio/chio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/chio') diff --git a/bin/chio/chio.c b/bin/chio/chio.c index 180d568..fb82fe6 100644 --- a/bin/chio/chio.c +++ b/bin/chio/chio.c @@ -496,7 +496,7 @@ do_status(char *cname, int argc, char **argv) description = NULL; optind = optreset = 1; - while ((c = getopt(argc, argv, "vVsSbaI")) != EOF) { + while ((c = getopt(argc, argv, "vVsSbaI")) != -1) { switch (c) { case 'v': pvoltag = 1; @@ -730,7 +730,7 @@ do_voltag(char *cname, int argc, char **argv) bzero(&csvr, sizeof(csvr)); optind = optreset = 1; - while ((c = getopt(argc, argv, "fca")) != EOF) { + while ((c = getopt(argc, argv, "fca")) != -1) { switch (c) { case 'f': force = 1; -- cgit v1.1