From 2ab96deb9a7c763ec3d5df266d3bcf82cb9e054c Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 29 Jan 1997 01:29:09 +0000 Subject: [PATCH] Use an integer rather than a char for the getopt() return value in main() in order to make it work with architectures that use unsigned chars. --- sbin/ipf/ipf.c | 4 ++-- usr.sbin/ipf/ipf/ipf.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/ipf/ipf.c b/sbin/ipf/ipf.c index d6fd5e310b64..0fb78f1065f0 100644 --- a/sbin/ipf/ipf.c +++ b/sbin/ipf/ipf.c @@ -39,7 +39,7 @@ extern char *index(); #if !defined(lint) && defined(LIBC_SCCS) static char sccsid[] = "@(#)ipf.c 1.23 6/5/96 (C) 1993-1995 Darren Reed"; -static char rcsid[] = "$Id: ipf.c,v 1.1.1.1 1997/01/05 13:06:38 mrg Exp $"; +static char rcsid[] = "$Id: ipf.c,v 1.2 1997/01/29 01:29:09 mark Exp $"; #endif #if SOLARIS @@ -61,7 +61,7 @@ int main(argc,argv) int argc; char *argv[]; { - char c; + int c; while ((c = getopt(argc, argv, "AdDEf:F:Il:noprsUvyzZ")) != -1) { switch (c) diff --git a/usr.sbin/ipf/ipf/ipf.c b/usr.sbin/ipf/ipf/ipf.c index d6fd5e310b64..0fb78f1065f0 100644 --- a/usr.sbin/ipf/ipf/ipf.c +++ b/usr.sbin/ipf/ipf/ipf.c @@ -39,7 +39,7 @@ extern char *index(); #if !defined(lint) && defined(LIBC_SCCS) static char sccsid[] = "@(#)ipf.c 1.23 6/5/96 (C) 1993-1995 Darren Reed"; -static char rcsid[] = "$Id: ipf.c,v 1.1.1.1 1997/01/05 13:06:38 mrg Exp $"; +static char rcsid[] = "$Id: ipf.c,v 1.2 1997/01/29 01:29:09 mark Exp $"; #endif #if SOLARIS @@ -61,7 +61,7 @@ int main(argc,argv) int argc; char *argv[]; { - char c; + int c; while ((c = getopt(argc, argv, "AdDEf:F:Il:noprsUvyzZ")) != -1) { switch (c)