aboutsummaryrefslogtreecommitdiff
path: root/sbin/shutdown
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1997-03-29 03:33:12 +0000
committerWarner Losh <imp@FreeBSD.org>1997-03-29 03:33:12 +0000
commit8d64695c7c6791641c71b15441665bafc43c2bd0 (patch)
treecf87bbae47f28b546d1ad8e17e84cacc7b425da6 /sbin/shutdown
parentf37dd3ba03f77cd17af02a6e72bd8cb089026bce (diff)
downloadsrc-8d64695c7c6791641c71b15441665bafc43c2bd0.tar.gz
src-8d64695c7c6791641c71b15441665bafc43c2bd0.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=24359
Diffstat (limited to 'sbin/shutdown')
-rw-r--r--sbin/shutdown/shutdown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c
index 2a915c3c2642..8a66ab9003dc 100644
--- a/sbin/shutdown/shutdown.c
+++ b/sbin/shutdown/shutdown.c
@@ -111,7 +111,7 @@ main(argc, argv)
#endif
nosync = NULL;
readstdin = 0;
- while ((ch = getopt(argc, argv, "-hknr")) != EOF)
+ while ((ch = getopt(argc, argv, "-hknr")) != -1)
switch (ch) {
case '-':
readstdin = 1;