diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-08-14 19:00:14 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-08-14 19:00:14 +0000 |
commit | 0b6b054dde657918dadbf3772248943ce0b55147 (patch) | |
tree | f5af25b2e0ec57e752af356f3effb204879b1a59 /sys/net/if_vlan.c | |
parent | a14f69d270af41914f7c3d15a9858cb54baeefe0 (diff) |
m_copyback()'s 4th arg is const void *, nuke (caddr_t) casts.
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r-- | sys/net/if_vlan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index fa15a9b4fa0..9a6ec88a038 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan.c,v 1.39 2003/07/25 03:45:42 jason Exp $ */ +/* $OpenBSD: if_vlan.c,v 1.40 2003/08/14 19:00:12 jason Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology * @@ -206,7 +206,7 @@ vlan_start(struct ifnet *ifp) sizeof(struct ether_vlan_header); m_copyback(m0, 0, sizeof(struct ether_vlan_header), - (caddr_t)&evh); + &evh); m = m0; } @@ -265,7 +265,7 @@ vlan_input_tag(struct mbuf *m, u_int16_t t) if (m->m_len < sizeof(struct ether_vlan_header) && (m = m_pullup(m, sizeof(struct ether_vlan_header))) == NULL) return (-1); - m_copyback(m, 0, sizeof(struct ether_vlan_header), (caddr_t)&vh); + m_copyback(m, 0, sizeof(struct ether_vlan_header), &vh); ether_input_mbuf(m->m_pkthdr.rcvif, m); return (-1); } |