From 7d4c1814f6c8b48aaba422848781244a3a8e1685 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 31 Aug 1996 14:48:13 +0000 Subject: Don't depend in the kernel on the gcc feature of doing arithmetic on pointers of type `void *'. Warn about this in future. --- sys/i386/isa/if_cx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/i386/isa/if_cx.c') 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); -- cgit v1.1