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/vjcomp.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/vjcomp.c')
-rw-r--r-- | usr.sbin/ppp/vjcomp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/ppp/vjcomp.c b/usr.sbin/ppp/vjcomp.c index 1445bbd..f9ef60d 100644 --- a/usr.sbin/ppp/vjcomp.c +++ b/usr.sbin/ppp/vjcomp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: vjcomp.c,v 1.14 1997/12/03 10:23:54 brian Exp $ + * $Id: vjcomp.c,v 1.15 1998/01/11 17:50:46 brian Exp $ * * TODO: */ @@ -32,7 +32,6 @@ #include "command.h" #include "mbuf.h" #include "log.h" -#include "defs.h" #include "timer.h" #include "fsm.h" #include "lcpproto.h" @@ -43,7 +42,7 @@ #define MAX_VJHEADER 16 /* Maximum size of compressed header */ -struct slcompress cslc; +static struct slcompress cslc; void VjInit(int max_state) @@ -103,7 +102,7 @@ VjUncompressTcp(struct mbuf * bp, u_char type) len = sl_uncompress_tcp(&bufp, len, type, &cslc); if (len <= 0) { pfree(bp); - bp = NULLBUFF; + bp = NULL; } return (bp); } @@ -121,7 +120,7 @@ VjUncompressTcp(struct mbuf * bp, u_char type) len = sl_uncompress_tcp(&bufp, olen, type, &cslc); if (len <= 0) { pfree(bp); - return NULLBUFF; + return NULL; } len -= olen; len += rlen; |