summaryrefslogtreecommitdiffstats
path: root/sys/net/slcompress.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-15 02:32:35 +0000
committerbde <bde@FreeBSD.org>1998-07-15 02:32:35 +0000
commit863d5c8b6850a65e8b4e00a7b23bbd29bd466602 (patch)
tree503589837ac05f783d5305211b0f41aed97e2041 /sys/net/slcompress.c
parentb99f2f9d598baa39c296f1cf2d910a1f7e138bb1 (diff)
downloadFreeBSD-src-863d5c8b6850a65e8b4e00a7b23bbd29bd466602.zip
FreeBSD-src-863d5c8b6850a65e8b4e00a7b23bbd29bd466602.tar.gz
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.
Diffstat (limited to 'sys/net/slcompress.c')
-rw-r--r--sys/net/slcompress.c8
1 files changed, 4 insertions, 4 deletions
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;
OpenPOWER on IntegriCloud