diff options
author | Warner Losh <imp@FreeBSD.org> | 1997-03-31 05:11:47 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 1997-03-31 05:11:47 +0000 |
commit | 6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc (patch) | |
tree | 9dcc58d3fb5e1644413565971c98196650ef87d3 /usr.sbin/qcamcontrol | |
parent | 44ee97a91b095311b8703857d54df336354236a0 (diff) | |
download | src-6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc.tar.gz src-6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc.zip |
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Notes
Notes:
svn path=/head/; revision=24428
Diffstat (limited to 'usr.sbin/qcamcontrol')
-rw-r--r-- | usr.sbin/qcamcontrol/qcamcontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/qcamcontrol/qcamcontrol.c b/usr.sbin/qcamcontrol/qcamcontrol.c index 8df213eb9472..e174d63d44b6 100644 --- a/usr.sbin/qcamcontrol/qcamcontrol.c +++ b/usr.sbin/qcamcontrol/qcamcontrol.c @@ -84,7 +84,7 @@ main(int argc, char **argv) x_size = y_size = zoom = depth = brightness = whitebalance = contrast = exposure = -1; - while ((opt = getopt(argc, argv, "p:x:y:z:d:b:w:c:e:")) != EOF) { + while ((opt = getopt(argc, argv, "p:x:y:z:d:b:w:c:e:")) != -1) { switch (opt) { case 'p': port = optarg; |