From 86e48c9a3b89780b5b63ae73636bda9f6c35206d Mon Sep 17 00:00:00 2001 From: lukem Date: Fri, 10 Oct 1997 11:49:44 +0000 Subject: getopt returns -1 not EOF --- arithmetic/arithmetic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'arithmetic/arithmetic.c') diff --git a/arithmetic/arithmetic.c b/arithmetic/arithmetic.c index 8e943993..fa16d56c 100644 --- a/arithmetic/arithmetic.c +++ b/arithmetic/arithmetic.c @@ -1,4 +1,4 @@ -/* $NetBSD: arithmetic.c,v 1.7 1997/10/09 23:07:02 lukem Exp $ */ +/* $NetBSD: arithmetic.c,v 1.8 1997/10/10 11:49:44 lukem Exp $ */ /* * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: arithmetic.c,v 1.7 1997/10/09 23:07:02 lukem Exp $"); +__RCSID("$NetBSD: arithmetic.c,v 1.8 1997/10/10 11:49:44 lukem Exp $"); #endif #endif /* not lint */ @@ -121,7 +121,7 @@ main(argc, argv) extern int optind; int ch, cnt; - while ((ch = getopt(argc, argv, "r:o:")) != EOF) + while ((ch = getopt(argc, argv, "r:o:")) != -1) switch(ch) { case 'o': { char *p; -- cgit v1.2.3-56-ge451