summaryrefslogtreecommitdiff
path: root/sys/net/slcompress.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 04:20:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 04:20:39 +0000
commitf4f54818989ab02ff8189a68093b1ed7fb626374 (patch)
tree8bc312c8dbb1fcf0fd6ecad9d6fe1fd60b294406 /sys/net/slcompress.c
parent79dbc49ee7bd452194493b4751b11c31a5f9191a (diff)
from netbsd; fix casts; should cast pointers to longs, not ints
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 1e2e2e37dc6..8367be2d00c 100644
--- a/sys/net/slcompress.c
+++ b/sys/net/slcompress.c
@@ -1,4 +1,4 @@
-/* $NetBSD: slcompress.c,v 1.12 1995/07/04 06:28:28 paulus Exp $ */
+/* $NetBSD: slcompress.c,v 1.13 1995/11/20 20:43:33 cgd Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@@ -422,10 +422,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 ((int)cp & 3) {
+ if ((long)cp & 3) {
if (len > 0)
- (void) ovbcopy(cp, (caddr_t)((int)cp &~ 3), len);
- cp = (u_char *)((int)cp &~ 3);
+ (void) ovbcopy(cp, (caddr_t)((long)cp &~ 3), len);
+ cp = (u_char *)((long)cp &~ 3);
}
cp -= hlen;
len += hlen;