From b993943913cab1b4593242454b66bd0c624b2b43 Mon Sep 17 00:00:00 2001 From: imp Date: Wed, 9 Sep 1998 17:24:31 +0000 Subject: getopt returns -1 not EOF --- tools/3.0-upgrade/cvt-wtmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/3.0-upgrade/cvt-wtmp.c b/tools/3.0-upgrade/cvt-wtmp.c index 730fa80..f5d3653 100644 --- a/tools/3.0-upgrade/cvt-wtmp.c +++ b/tools/3.0-upgrade/cvt-wtmp.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: cvt-wtmp.c,v 1.4 1997/02/22 14:08:01 peter Exp $ * */ @@ -82,7 +82,7 @@ main(int argc, char **argv) int errs, i, nflag, forceflag, rv; errs = nflag = forceflag = 0; - while ((i = getopt(argc, argv, "fn")) != EOF) + while ((i = getopt(argc, argv, "fn")) != -1) switch (i) { case 'f': -- cgit v1.1