summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_cx.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-08-31 14:48:13 +0000
committerbde <bde@FreeBSD.org>1996-08-31 14:48:13 +0000
commit7d4c1814f6c8b48aaba422848781244a3a8e1685 (patch)
treed30aec0f7e14e7c815c7a2ac90c600b28f51abf5 /sys/i386/isa/if_cx.c
parentf8b5cfc537cc8181d579a4fd086b618c24806f74 (diff)
downloadFreeBSD-src-7d4c1814f6c8b48aaba422848781244a3a8e1685.zip
FreeBSD-src-7d4c1814f6c8b48aaba422848781244a3a8e1685.tar.gz
Don't depend in the kernel on the gcc feature of doing arithmetic on
pointers of type `void *'. Warn about this in future.
Diffstat (limited to 'sys/i386/isa/if_cx.c')
-rw-r--r--sys/i386/isa/if_cx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/if_cx.c b/sys/i386/isa/if_cx.c
index c1114c7..0cbc959 100644
--- a/sys/i386/isa/if_cx.c
+++ b/sys/i386/isa/if_cx.c
@@ -176,7 +176,7 @@ static struct mbuf *makembuf (void *buf, unsigned len)
bcopy (buf, mtod (p, caddr_t) + p->m_len, n);
p->m_len += n;
- buf += n;
+ buf = (char *)buf + n;
len -= n;
}
return (m);
OpenPOWER on IntegriCloud