summaryrefslogtreecommitdiffstats
path: root/bin/chio
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-05-23 23:24:26 +0000
committerimp <imp@FreeBSD.org>1999-05-23 23:24:26 +0000
commit3aec1640dfcf063d1ba62f7dcbb14a1c363fd828 (patch)
tree0eeef0425d26795141407f0b4a7f4cb649cef243 /bin/chio
parentd0b3d805b48cc5180d9275494e354b7ddee74cde (diff)
downloadFreeBSD-src-3aec1640dfcf063d1ba62f7dcbb14a1c363fd828.zip
FreeBSD-src-3aec1640dfcf063d1ba62f7dcbb14a1c363fd828.tar.gz
getopt(3) returns -1 not EOF.
Diffstat (limited to 'bin/chio')
-rw-r--r--bin/chio/chio.c4
1 files changed, 2 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud