From: deraadt Date: Thu, 14 Dec 1995 04:20:38 +0000 (+0000) Subject: from netbsd; fix casts; should cast pointers to longs, not ints X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cf3a88a19b25620eb7b79432c3583cea42137a12;p=openbsd from netbsd; fix casts; should cast pointers to longs, not ints --- 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;