diff options
author | brian <brian@FreeBSD.org> | 1999-07-10 00:03:58 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-07-10 00:03:58 +0000 |
commit | 21e36fb5b3c007c42697d16e28dd5c3ae7d5cfb1 (patch) | |
tree | 9b3d0248927eae683b4eced019fb02e002c5cf80 | |
parent | 0e5641f96697f30b24ea3c17b01d108b83aa6ce3 (diff) | |
download | FreeBSD-src-21e36fb5b3c007c42697d16e28dd5c3ae7d5cfb1.zip FreeBSD-src-21e36fb5b3c007c42697d16e28dd5c3ae7d5cfb1.tar.gz |
Leap through one more hoop to avoid alignment problems.
-rw-r--r-- | usr.sbin/ppp/slcompress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/slcompress.c b/usr.sbin/ppp/slcompress.c index 7359ac7..3e43299 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.25 1999/05/08 11:07:38 brian Exp $ + * $Id: slcompress.c,v 1.26 1999/05/09 20:02:26 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 = &((struct ip *)cp)->ip_sum; + bp = cp + (int)&((struct ip *)0)->ip_sum; memcpy(bp, &sum, sizeof *bp); } return (len); |