summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1997-12-26 03:24:26 +0000
committeralex <alex@FreeBSD.org>1997-12-26 03:24:26 +0000
commit367097735d0f17df8a974f53d714a11df69fb5bd (patch)
tree68d982d6b87d2226650c8a0f14b1447e0b70f863 /sbin/ipfw
parent2d8d633ba53299b082383f2ba3f2fc523ae43ac6 (diff)
downloadFreeBSD-src-367097735d0f17df8a974f53d714a11df69fb5bd.zip
FreeBSD-src-367097735d0f17df8a974f53d714a11df69fb5bd.tar.gz
Put the return value of getopt into an int, not a char.
Diffstat (limited to 'sbin/ipfw')
-rw-r--r--sbin/ipfw/ipfw.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/ipfw/ipfw.c b/sbin/ipfw/ipfw.c
index 8213a74..77e09b2 100644
--- a/sbin/ipfw/ipfw.c
+++ b/sbin/ipfw/ipfw.c
@@ -16,7 +16,7 @@
*
* NEW command line interface for IP firewall facility
*
- * $Id: ipfw.c,v 1.47 1997/08/08 14:36:28 alex Exp $
+ * $Id: ipfw.c,v 1.48 1997/12/05 02:43:26 julian Exp $
*
*/
@@ -1088,10 +1088,9 @@ ipfw_main(ac,av)
char **av;
{
- char ch;
+ int ch;
extern int optind;
-
if ( ac == 1 ) {
show_usage(NULL);
}
@@ -1099,7 +1098,7 @@ ipfw_main(ac,av)
/* Set the force flag for non-interactive processes */
do_force = !isatty(STDIN_FILENO);
- while ((ch = getopt(ac, av ,"afqtN")) != -1)
+ while ((ch = getopt(ac, av, "afqtN")) != -1)
switch(ch) {
case 'a':
do_acct=1;
@@ -1140,7 +1139,7 @@ ipfw_main(ac,av)
/* Ask the user */
printf("Are you sure? [yn] ");
do {
- fflush(stdout);
+ fflush(stdout);
c = toupper(getc(stdin));
while (c != '\n' && getc(stdin) != '\n')
if (feof(stdin))
OpenPOWER on IntegriCloud