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/tcopy/tcopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/tcopy') diff --git a/usr.bin/tcopy/tcopy.c b/usr.bin/tcopy/tcopy.c index dea204c..3508372 100644 --- a/usr.bin/tcopy/tcopy.c +++ b/usr.bin/tcopy/tcopy.c @@ -81,7 +81,7 @@ main(argc, argv) char *buff, *inf; guesslen = 1; - while ((ch = getopt(argc, argv, "cs:vx")) != EOF) + while ((ch = getopt(argc, argv, "cs:vx")) != -1) switch((char)ch) { case 'c': op = COPYVERIFY; -- cgit v1.1