diff options
author | brian <brian@FreeBSD.org> | 1997-10-26 01:04:02 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-10-26 01:04:02 +0000 |
commit | 486b8925ecb0d408e403474828e20c1cce8aaec8 (patch) | |
tree | cca66974908224bf517868aaafb2e4acd1abe88d /usr.sbin/ppp/vjcomp.c | |
parent | 1d2927c9fac7bcfe68bf6ab502c716adc91d6f09 (diff) | |
download | FreeBSD-src-486b8925ecb0d408e403474828e20c1cce8aaec8.zip FreeBSD-src-486b8925ecb0d408e403474828e20c1cce8aaec8.tar.gz |
Cosmetic (no functional changes):
o Add missing $Id$s
o Move extern decls from .c -> .h files
o Staticize
o Remove #includes from .h files
o style(9)ify includes
o bcopy -> memcpy
bzero -> memset
bcmp -> memcmp
index -> strchr
rindex -> strrchr
o Move timeout.h -> timer.h (making it consistent w/ timer.c)
o Add -Wmissing-prototypes
Diffstat (limited to 'usr.sbin/ppp/vjcomp.c')
-rw-r--r-- | usr.sbin/ppp/vjcomp.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/usr.sbin/ppp/vjcomp.c b/usr.sbin/ppp/vjcomp.c index fef6a97..4f93304 100644 --- a/usr.sbin/ppp/vjcomp.c +++ b/usr.sbin/ppp/vjcomp.c @@ -17,17 +17,27 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: vjcomp.c,v 1.9 1997/08/25 00:29:32 brian Exp $ + * $Id: vjcomp.c,v 1.10 1997/10/07 00:56:58 brian Exp $ * * TODO: */ -#include "fsm.h" -#include "lcpproto.h" +#include <sys/types.h> +#include <netinet/in.h> #include <netinet/in_systm.h> #include <netinet/ip.h> + +#include <string.h> + +#include "mbuf.h" +#include "log.h" +#include "defs.h" +#include "timer.h" +#include "fsm.h" +#include "lcpproto.h" #include "slcompress.h" #include "hdlc.h" #include "ipcp.h" +#include "vjcomp.h" #define MAX_VJHEADER 16 /* Maximum size of compressed header */ @@ -114,7 +124,7 @@ VjUncompressTcp(struct mbuf * bp, u_char type) len -= olen; len += rlen; nbp = mballoc(len, MB_VJCOMP); - bcopy(bufp, MBUF_CTOP(nbp), len); + memcpy(MBUF_CTOP(nbp), bufp, len); nbp->next = bp; return (nbp); } |