aboutsummaryrefslogtreecommitdiff
path: root/sys/net/slcompress.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-07-15 02:32:35 +0000
committerBruce Evans <bde@FreeBSD.org>1998-07-15 02:32:35 +0000
commita23d65bfc81ba69197bec5dcc814e36783f02f46 (patch)
tree8ea1483624c6c26a321a15abba7f299f7726ac5d /sys/net/slcompress.c
parentaad7cac45af92ed232797abde2e4506b80046c1e (diff)
downloadsrc-a23d65bfc81ba69197bec5dcc814e36783f02f46.tar.gz
src-a23d65bfc81ba69197bec5dcc814e36783f02f46.zip
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.
Notes
Notes: svn path=/head/; revision=37649
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 58056e85139d..afd6bf6e96be 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;