From 141381e1cbdbd8001c13e9e8c0adbfc81d1b3cd0 Mon Sep 17 00:00:00 2001 From: imp Date: Sat, 29 Mar 1997 04:34:07 +0000 Subject: compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic. --- usr.bin/finger/finger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/finger') diff --git a/usr.bin/finger/finger.c b/usr.bin/finger/finger.c index 9235d13..7e7443f 100644 --- a/usr.bin/finger/finger.c +++ b/usr.bin/finger/finger.c @@ -103,7 +103,7 @@ option(argc, argv) optind = 1; /* reset getopt */ - while ((ch = getopt(argc, argv, "lmpshoT")) != EOF) + while ((ch = getopt(argc, argv, "lmpshoT")) != -1) switch(ch) { case 'l': lflag = 1; /* long format */ -- cgit v1.1