aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/isa/if_cx.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1996-08-31 14:48:13 +0000
committerBruce Evans <bde@FreeBSD.org>1996-08-31 14:48:13 +0000
commit09a8dfa2609f6be79252c94d3b959ec2cf1a0835 (patch)
treed30aec0f7e14e7c815c7a2ac90c600b28f51abf5 /sys/i386/isa/if_cx.c
parent454f40052a75a6f45099d46fa12524ccdb7da8a5 (diff)
Don't depend in the kernel on the gcc feature of doing arithmetic on
pointers of type `void *'. Warn about this in future.
Notes
Notes: svn path=/head/; revision=17971
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 c1114c79dd56..0cbc95922dfa 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);