From 34098f71f949273bcbc846942a19fa8e87497849 Mon Sep 17 00:00:00 2001 From: brian Date: Sat, 10 Jul 1999 00:08:19 +0000 Subject: Oops - add a missing cast. --- usr.sbin/ppp/slcompress.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ppp/slcompress.c') diff --git a/usr.sbin/ppp/slcompress.c b/usr.sbin/ppp/slcompress.c index 3e43299..f277674 100644 --- a/usr.sbin/ppp/slcompress.c +++ b/usr.sbin/ppp/slcompress.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: slcompress.c,v 1.26 1999/05/09 20:02:26 brian Exp $ + * $Id: slcompress.c,v 1.27 1999/07/10 00:03:58 brian Exp $ * * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989: * - Initial distribution. @@ -558,7 +558,7 @@ sl_uncompress_tcp(u_char ** bufp, int len, u_int type, struct slcompress *comp, /* Watch out for alighment problems.... */ sum = ~changes; - bp = cp + (int)&((struct ip *)0)->ip_sum; + bp = (u_short *)(cp + (int)&((struct ip *)0)->ip_sum); memcpy(bp, &sum, sizeof *bp); } return (len); -- cgit v1.1