diff options
author | kris <kris@FreeBSD.org> | 1999-05-29 08:12:38 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 1999-05-29 08:12:38 +0000 |
commit | bd85d672568edc6471bcc0400cdc5a99b267f2c3 (patch) | |
tree | 71f4f228808c14c4193f6d0b20a328c1b382ec57 /sbin/ipfw/ipfw.c | |
parent | f0e4180b10a857d5ebd4627bbbf5ce5a9343430d (diff) | |
download | FreeBSD-src-bd85d672568edc6471bcc0400cdc5a99b267f2c3.zip FreeBSD-src-bd85d672568edc6471bcc0400cdc5a99b267f2c3.tar.gz |
Manpage cleanup, move $Id$ to #ifndef lint, remove unused includes,
grammatical fixes.
Submitted by: Philippe Charnier
Diffstat (limited to 'sbin/ipfw/ipfw.c')
-rw-r--r-- | sbin/ipfw/ipfw.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sbin/ipfw/ipfw.c b/sbin/ipfw/ipfw.c index cf976e7..5d7bdf0 100644 --- a/sbin/ipfw/ipfw.c +++ b/sbin/ipfw/ipfw.c @@ -16,12 +16,15 @@ * * NEW command line interface for IP firewall facility * - * $Id: ipfw.c,v 1.65 1999/01/22 01:46:32 archie Exp $ - * */ +#ifndef lint +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ + + #include <sys/types.h> -#include <sys/queue.h> #include <sys/socket.h> #include <sys/sockio.h> #include <sys/time.h> @@ -37,14 +40,12 @@ #include <stdlib.h> #include <stdarg.h> #include <string.h> -#include <sysexits.h> -#include <time.h> #include <unistd.h> +#include <sysexits.h> #include <net/if.h> #include <netinet/in.h> #include <netinet/in_systm.h> -#include <netinet/ip_var.h> #include <netinet/ip.h> #include <netinet/ip_icmp.h> #include <netinet/ip_fw.h> @@ -183,7 +184,7 @@ show_ipfw(struct ip_fw *chain, int pcwidth, int bcwidth) int ndp = IP_FW_GETNDSTP(chain); if (do_resolv) - setservent(1/*stayopen*/); + setservent(1/*stay open*/); printf("%05u ", chain->fw_number); @@ -1406,7 +1407,7 @@ ipfw_main(ac,av) ac -= optind; if (*(av+=optind)==NULL) { - show_usage("Bad arguments"); + show_usage("bad arguments"); } if (!strncmp(*av, "pipe", strlen(*av))) { @@ -1468,7 +1469,7 @@ ipfw_main(ac,av) do_acct++; list(--ac,++av); } else { - show_usage("Bad arguments"); + show_usage("bad arguments"); } return 0; } |