From 863d5c8b6850a65e8b4e00a7b23bbd29bd466602 Mon Sep 17 00:00:00 2001 From: bde Date: Wed, 15 Jul 1998 02:32:35 +0000 Subject: Cast pointers to uintptr_t/intptr_t instead of to u_long/long, respectively. Most of the longs should probably have been u_longs, but this changes is just to prevent warnings about casts between pointers and integers of different sizes, not to fix poorly chosen types. --- sys/net/slcompress.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/net/slcompress.c') diff --git a/sys/net/slcompress.c b/sys/net/slcompress.c index 58056e8..afd6bf6 100644 --- a/sys/net/slcompress.c +++ b/sys/net/slcompress.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)slcompress.c 8.2 (Berkeley) 4/16/94 - * $Id: slcompress.c,v 1.10 1997/06/22 02:19:53 brian Exp $ + * $Id: slcompress.c,v 1.11 1997/08/19 14:10:47 peter Exp $ */ /* @@ -435,10 +435,10 @@ sl_uncompress_tcp(bufp, len, type, comp) * header (we assume the packet we were handed has enough space to * prepend 128 bytes of header). */ - if ((long)cp & 3) { + if ((intptr_t)cp & 3) { if (len > 0) - (void) ovbcopy(cp, (caddr_t)((long)cp &~ 3), len); - cp = (u_char *)((long)cp &~ 3); + (void) ovbcopy(cp, (caddr_t)((intptr_t)cp &~ 3), len); + cp = (u_char *)((intptr_t)cp &~ 3); } cp -= hlen; len += hlen; -- cgit v1.1