diff options
author | Warner Losh <imp@FreeBSD.org> | 1997-03-29 03:33:12 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 1997-03-29 03:33:12 +0000 |
commit | 8d64695c7c6791641c71b15441665bafc43c2bd0 (patch) | |
tree | cf87bbae47f28b546d1ad8e17e84cacc7b425da6 /sbin/adjkerntz/adjkerntz.c | |
parent | f37dd3ba03f77cd17af02a6e72bd8cb089026bce (diff) | |
download | src-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/adjkerntz/adjkerntz.c')
-rw-r--r-- | sbin/adjkerntz/adjkerntz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/adjkerntz/adjkerntz.c b/sbin/adjkerntz/adjkerntz.c index 8cd3ff9ce750..e8b069018cc2 100644 --- a/sbin/adjkerntz/adjkerntz.c +++ b/sbin/adjkerntz/adjkerntz.c @@ -82,7 +82,7 @@ int main(argc, argv) init = Unknown; sigset_t mask, emask; - while ((ch = getopt(argc, argv, "ais")) != EOF) + while ((ch = getopt(argc, argv, "ais")) != -1) switch((char)ch) { case 'i': /* initial call, save offset */ if (init != Unknown) |