diff options
Diffstat (limited to 'usr.bin/logger/logger.c')
-rw-r--r-- | usr.bin/logger/logger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/logger/logger.c b/usr.bin/logger/logger.c index 5cb3409..553591f 100644 --- a/usr.bin/logger/logger.c +++ b/usr.bin/logger/logger.c @@ -73,7 +73,7 @@ main(argc, argv) pri = LOG_NOTICE; logflags = 0; unsetenv("TZ"); - while ((ch = getopt(argc, argv, "f:ip:st:")) != EOF) + while ((ch = getopt(argc, argv, "f:ip:st:")) != -1) switch((char)ch) { case 'f': /* file to log */ if (freopen(optarg, "r", stdin) == NULL) { |