Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pcmcia bcopy -> memcpy, strcpy
details: https://anonhg.NetBSD.org/src/rev/2e19e75d746e
branches: trunk
changeset: 512205:2e19e75d746e
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Jul 07 16:49:57 2001 +0000
description:
bcopy -> memcpy, strcpy
diffstat:
sys/dev/pcmcia/if_cnw.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r bb2117119bf3 -r 2e19e75d746e sys/dev/pcmcia/if_cnw.c
--- a/sys/dev/pcmcia/if_cnw.c Sat Jul 07 16:47:43 2001 +0000
+++ b/sys/dev/pcmcia/if_cnw.c Sat Jul 07 16:49:57 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_cnw.c,v 1.17 2000/12/14 06:29:37 thorpej Exp $ */
+/* $NetBSD: if_cnw.c,v 1.18 2001/07/07 16:49:57 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -580,7 +580,7 @@
ether_sprintf(macaddr));
/* Set up ifnet structure */
- bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ);
+ strcpy(ifp->if_xname, sc->sc_dev.dv_xname);
ifp->if_softc = sc;
ifp->if_start = cnw_start;
ifp->if_ioctl = cnw_ioctl;
@@ -1130,9 +1130,8 @@
break;
case SIOCGCNWSTATS:
- bcopy((void *)&sc->sc_stats,
- (void *)&(((struct cnwistats *)data)->stats),
- sizeof(struct cnwstats));
+ memcpy((void *)&(((struct cnwistats *)data)->stats),
+ (void *)&sc->sc_stats, sizeof(struct cnwstats));
break;
default:
Home |
Main Index |
Thread Index |
Old Index