diff options
author | brian <brian@FreeBSD.org> | 1998-01-21 02:15:33 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-01-21 02:15:33 +0000 |
commit | 8a229af5668a46fda9ae9c7a0fc18cf5d0f2e337 (patch) | |
tree | 403c2042c52b8c056a6d3fd2cb974c58a8dfa534 /usr.sbin/ppp/filter.c | |
parent | 606a03ebe5beda6ea740330bf2295c7adc7f4101 (diff) | |
download | FreeBSD-src-8a229af5668a46fda9ae9c7a0fc18cf5d0f2e337.zip FreeBSD-src-8a229af5668a46fda9ae9c7a0fc18cf5d0f2e337.tar.gz |
Remove unused #includes.
Make various bits static.
Remove unused variables.
Submitted by: eivind
Diffstat (limited to 'usr.sbin/ppp/filter.c')
-rw-r--r-- | usr.sbin/ppp/filter.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ppp/filter.c b/usr.sbin/ppp/filter.c index 596b65a..b426e31 100644 --- a/usr.sbin/ppp/filter.c +++ b/usr.sbin/ppp/filter.c @@ -17,13 +17,12 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: filter.c,v 1.20 1997/12/13 02:37:22 brian Exp $ + * $Id: filter.c,v 1.21 1997/12/24 09:28:57 brian Exp $ * * TODO: Shoud send ICMP error message when we discard packets. */ #include <sys/param.h> -#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> @@ -269,7 +268,7 @@ ParseUdpOrTcp(int argc, char const *const *argv, int proto) return (0); } -const char *opname[] = {"none", "eq", "gt", NULL, "lt"}; +static const char *opname[] = {"none", "eq", "gt", NULL, "lt"}; static int Parse(int argc, char const *const *argv, struct filterent * ofp) |