From 34ef7ac7fd8bd4c426cd292ac4eb658d67867eab Mon Sep 17 00:00:00 2001 From: lukem Date: Fri, 10 Oct 1997 13:04:33 +0000 Subject: WARNSify --- fortune/strfile/strfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fortune/strfile/strfile.c') diff --git a/fortune/strfile/strfile.c b/fortune/strfile/strfile.c index 1df7f9d9..1e37208b 100644 --- a/fortune/strfile/strfile.c +++ b/fortune/strfile/strfile.c @@ -1,4 +1,4 @@ -/* $NetBSD: strfile.c,v 1.5 1996/10/13 00:01:05 christos Exp $ */ +/* $NetBSD: strfile.c,v 1.6 1997/10/10 13:04:42 lukem Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)strfile.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: strfile.c,v 1.5 1996/10/13 00:01:05 christos Exp $"; +static char rcsid[] = "$NetBSD: strfile.c,v 1.6 1997/10/10 13:04:42 lukem Exp $"; #endif #endif /* not lint */ @@ -266,7 +266,7 @@ char **argv; extern int optind; int ch; - while ((ch = getopt(argc, argv, "c:iorsx")) != EOF) + while ((ch = getopt(argc, argv, "c:iorsx")) != -1) switch(ch) { case 'c': /* new delimiting char */ Delimch = *optarg; -- cgit v1.2.3-56-ge451