summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1995-12-14 04:20:38 +0000
committerderaadt <deraadt@openbsd.org>1995-12-14 04:20:38 +0000
commitcf3a88a19b25620eb7b79432c3583cea42137a12 (patch)
tree9e768e2a62433f9fef98f08c9614e804e0417573 /sys
parentfrom netbsd (mostly by ws): (diff)
downloadwireguard-openbsd-cf3a88a19b25620eb7b79432c3583cea42137a12.tar.xz
wireguard-openbsd-cf3a88a19b25620eb7b79432c3583cea42137a12.zip
from netbsd; fix casts; should cast pointers to longs, not ints
Diffstat (limited to 'sys')
-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;