From 1c8af8787354e20c2b38cab5801698133ff8b403 Mon Sep 17 00:00:00 2001 From: Warner Losh 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/uudecode/uudecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/uudecode') diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c index ebe283227610..1667e01561c5 100644 --- a/usr.bin/uudecode/uudecode.c +++ b/usr.bin/uudecode/uudecode.c @@ -73,7 +73,7 @@ main(argc, argv) extern int errno; int rval, ch; - while ((ch = getopt(argc, argv, "cp")) != EOF) { + while ((ch = getopt(argc, argv, "cp")) != -1) { switch(ch) { case 'c': cflag = 1; /* multiple uudecode'd files */ -- cgit v1.2.3