From 054f35c2222ef251bc2877814cf7bf5ff6038166 Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 28 Mar 1997 15:24:41 +0000 Subject: compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic. --- bin/ln/ln.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/ln/ln.c') diff --git a/bin/ln/ln.c b/bin/ln/ln.c index e6d5f65..8146740 100644 --- a/bin/ln/ln.c +++ b/bin/ln/ln.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: ln.c,v 1.9 1997/02/22 14:03:49 peter Exp $ */ #ifndef lint @@ -71,7 +71,7 @@ main(argc, argv) int ch, exitval; char *sourcedir; - while ((ch = getopt(argc, argv, "fs")) != EOF) + while ((ch = getopt(argc, argv, "fs")) != -1) switch (ch) { case 'f': fflag = 1; -- cgit v1.1