diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-06-11 18:45:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-06-11 18:45:26 +0000 |
commit | b46bdc87d12f64a73dd9be1af6eea4e8c42f227e (patch) | |
tree | 70c07c6df6c2cea4116582978f0d5a102f654fdb /sys/dev | |
parent | d463db000ec6f49b81563d02591955f8ebe11984 (diff) |
Replace more ovbcopy with memmove; swap the src and dst arguments too
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/if_athn_usb.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/if_run.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/if_uath.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/usb/if_athn_usb.c b/sys/dev/usb/if_athn_usb.c index 39e7add9a91..3558fe68124 100644 --- a/sys/dev/usb/if_athn_usb.c +++ b/sys/dev/usb/if_athn_usb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_athn_usb.c,v 1.16 2013/04/15 09:23:01 mglocker Exp $ */ +/* $OpenBSD: if_athn_usb.c,v 1.17 2013/06/11 18:45:25 deraadt Exp $ */ /*- * Copyright (c) 2011 Damien Bergamini <damien.bergamini@free.fr> @@ -1708,7 +1708,7 @@ athn_usb_rx_frame(struct athn_usb_softc *usc, struct mbuf *m) if (!(wh->i_fc[0] & IEEE80211_FC0_TYPE_CTL)) { u_int hdrlen = ieee80211_get_hdrlen(wh); if (hdrlen & 3) { - ovbcopy(wh, (caddr_t)wh + 2, hdrlen); + memmove((caddr_t)wh + 2, wh, hdrlen); m_adj(m, 2); } } diff --git a/sys/dev/usb/if_run.c b/sys/dev/usb/if_run.c index b03d75936f8..76d12983cde 100644 --- a/sys/dev/usb/if_run.c +++ b/sys/dev/usb/if_run.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_run.c,v 1.92 2013/04/15 09:23:01 mglocker Exp $ */ +/* $OpenBSD: if_run.c,v 1.93 2013/06/11 18:45:25 deraadt Exp $ */ /*- * Copyright (c) 2008-2010 Damien Bergamini <damien.bergamini@free.fr> @@ -1966,7 +1966,7 @@ run_rx_frame(struct run_softc *sc, uint8_t *buf, int dmalen) if (flags & RT2860_RX_L2PAD) { u_int hdrlen = ieee80211_get_hdrlen(wh); - ovbcopy(wh, (caddr_t)wh + 2, hdrlen); + memmove((caddr_t)wh + 2, wh, hdrlen); wh = (struct ieee80211_frame *)((caddr_t)wh + 2); } diff --git a/sys/dev/usb/if_uath.c b/sys/dev/usb/if_uath.c index e345ab63174..77ef42e0388 100644 --- a/sys/dev/usb/if_uath.c +++ b/sys/dev/usb/if_uath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_uath.c,v 1.54 2013/04/15 09:23:01 mglocker Exp $ */ +/* $OpenBSD: if_uath.c,v 1.55 2013/06/11 18:45:25 deraadt Exp $ */ /*- * Copyright (c) 2006 @@ -1254,8 +1254,8 @@ uath_data_rxeof(struct usbd_xfer *xfer, void *priv, * fields. */ wh->i_fc[1] &= ~IEEE80211_FC1_WEP; - ovbcopy(wh, (caddr_t)wh + IEEE80211_WEP_IVLEN + - IEEE80211_WEP_KIDLEN, sizeof (struct ieee80211_frame)); + memmove((caddr_t)wh + IEEE80211_WEP_IVLEN + + IEEE80211_WEP_KIDLEN, wh, sizeof (struct ieee80211_frame)); m_adj(m, IEEE80211_WEP_IVLEN + IEEE80211_WEP_KIDLEN); m_adj(m, -IEEE80211_WEP_CRCLEN); wh = mtod(m, struct ieee80211_frame *); |