Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Replace ovbcopy -> memmove, same.
details: https://anonhg.NetBSD.org/src/rev/6f4ec88acde4
branches: trunk
changeset: 359158:6f4ec88acde4
user: maxv <maxv%NetBSD.org@localhost>
date: Thu Feb 01 16:49:34 2018 +0000
description:
Replace ovbcopy -> memmove, same.
diffstat:
sys/dev/ic/arn5008.c | 6 +++---
sys/dev/ic/arn9003.c | 6 +++---
sys/dev/usb/if_athn_usb.c | 6 +++---
sys/dev/usb/if_run.c | 6 +++---
4 files changed, 12 insertions(+), 12 deletions(-)
diffs (108 lines):
diff -r 91ad68c6e301 -r 6f4ec88acde4 sys/dev/ic/arn5008.c
--- a/sys/dev/ic/arn5008.c Thu Feb 01 16:36:01 2018 +0000
+++ b/sys/dev/ic/arn5008.c Thu Feb 01 16:49:34 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arn5008.c,v 1.13 2017/05/23 02:19:14 ozaki-r Exp $ */
+/* $NetBSD: arn5008.c,v 1.14 2018/02/01 16:49:34 maxv Exp $ */
/* $OpenBSD: ar5008.c,v 1.21 2012/08/25 12:14:31 kettenis Exp $ */
/*-
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn5008.c,v 1.13 2017/05/23 02:19:14 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn5008.c,v 1.14 2018/02/01 16:49:34 maxv Exp $");
#include <sys/param.h>
#include <sys/sockio.h>
@@ -920,7 +920,7 @@
if (!(wh->i_fc[0] & IEEE80211_FC0_TYPE_CTL)) {
u_int hdrlen = ieee80211_anyhdrsize(wh);
if (hdrlen & 3) {
- ovbcopy(wh, (uint8_t *)wh + 2, hdrlen);
+ memmove((uint8_t *)wh + 2, wh, hdrlen);
m_adj(m, 2);
}
}
diff -r 91ad68c6e301 -r 6f4ec88acde4 sys/dev/ic/arn9003.c
--- a/sys/dev/ic/arn9003.c Thu Feb 01 16:36:01 2018 +0000
+++ b/sys/dev/ic/arn9003.c Thu Feb 01 16:49:34 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arn9003.c,v 1.11 2017/05/23 02:19:14 ozaki-r Exp $ */
+/* $NetBSD: arn9003.c,v 1.12 2018/02/01 16:49:34 maxv Exp $ */
/* $OpenBSD: ar9003.c,v 1.25 2012/10/20 09:53:32 stsp Exp $ */
/*-
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arn9003.c,v 1.11 2017/05/23 02:19:14 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arn9003.c,v 1.12 2018/02/01 16:49:34 maxv Exp $");
#include <sys/param.h>
#include <sys/sockio.h>
@@ -1053,7 +1053,7 @@
if (!(wh->i_fc[0] & IEEE80211_FC0_TYPE_CTL)) {
u_int hdrlen = ieee80211_anyhdrsize(wh);
if (hdrlen & 3) {
- ovbcopy(wh, (uint8_t *)wh + 2, hdrlen);
+ memmove((uint8_t *)wh + 2, wh, hdrlen);
m_adj(m, 2);
}
}
diff -r 91ad68c6e301 -r 6f4ec88acde4 sys/dev/usb/if_athn_usb.c
--- a/sys/dev/usb/if_athn_usb.c Thu Feb 01 16:36:01 2018 +0000
+++ b/sys/dev/usb/if_athn_usb.c Thu Feb 01 16:49:34 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_athn_usb.c,v 1.25 2018/01/21 13:57:11 skrll Exp $ */
+/* $NetBSD: if_athn_usb.c,v 1.26 2018/02/01 16:49:34 maxv Exp $ */
/* $OpenBSD: if_athn_usb.c,v 1.12 2013/01/14 09:50:31 jsing Exp $ */
/*-
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_athn_usb.c,v 1.25 2018/01/21 13:57:11 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_athn_usb.c,v 1.26 2018/02/01 16:49:34 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -2259,7 +2259,7 @@
if (!(wh->i_fc[0] & IEEE80211_FC0_TYPE_CTL)) {
u_int hdrlen = ieee80211_anyhdrsize(wh);
if (hdrlen & 3) {
- ovbcopy(wh, (uint8_t *)wh + 2, hdrlen);
+ memmove((uint8_t *)wh + 2, wh, hdrlen);
m_adj(m, 2);
}
}
diff -r 91ad68c6e301 -r 6f4ec88acde4 sys/dev/usb/if_run.c
--- a/sys/dev/usb/if_run.c Thu Feb 01 16:36:01 2018 +0000
+++ b/sys/dev/usb/if_run.c Thu Feb 01 16:49:34 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_run.c,v 1.25 2018/01/21 13:57:12 skrll Exp $ */
+/* $NetBSD: if_run.c,v 1.26 2018/02/01 16:49:34 maxv Exp $ */
/* $OpenBSD: if_run.c,v 1.90 2012/03/24 15:11:04 jsg Exp $ */
/*-
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_run.c,v 1.25 2018/01/21 13:57:12 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_run.c,v 1.26 2018/02/01 16:49:34 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -2241,7 +2241,7 @@
if (flags & RT2860_RX_L2PAD) {
u_int hdrlen = ieee80211_hdrspace(ic, wh);
- ovbcopy(wh, (uint8_t *)wh + 2, hdrlen);
+ memmove((uint8_t *)wh + 2, wh, hdrlen);
wh = (struct ieee80211_frame *)((uint8_t *)wh + 2);
}
Home |
Main Index |
Thread Index |
Old Index