summaryrefslogtreecommitdiff
path: root/sys/net/if_trunk.c
diff options
context:
space:
mode:
authorDavid Hill <dhill@cvs.openbsd.org>2010-11-12 13:26:30 +0000
committerDavid Hill <dhill@cvs.openbsd.org>2010-11-12 13:26:30 +0000
commita48c673d6666f13fc0747e285e24ea16cf0d8cc1 (patch)
treec3674452c850e09d8b0fc6ff85ff8a6e638600b1 /sys/net/if_trunk.c
parentcb3045b566a9cb9b330ffeae630e184e2f821687 (diff)
avoid pointer arithmetic on void *
no change in .o ok claudio
Diffstat (limited to 'sys/net/if_trunk.c')
-rw-r--r--sys/net/if_trunk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_trunk.c b/sys/net/if_trunk.c
index 78a9777bae9..4c1c90e3503 100644
--- a/sys/net/if_trunk.c
+++ b/sys/net/if_trunk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_trunk.c,v 1.75 2010/05/08 11:26:06 stsp Exp $ */
+/* $OpenBSD: if_trunk.c,v 1.76 2010/11/12 13:26:29 dhill Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -1211,7 +1211,7 @@ trunk_gethdr(struct mbuf *m, u_int off, u_int len, void *buf)
m_copydata(m, off, len, buf);
return (buf);
}
- return (mtod(m, const void *) + off);
+ return (mtod(m, caddr_t) + off);
}
/*