diff options
author | dg <dg@FreeBSD.org> | 1995-05-09 13:35:48 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-05-09 13:35:48 +0000 |
commit | 522567dac1ff47b12e0a137b8bd2741e122998eb (patch) | |
tree | 9d48adb1c0af75ef1704f761cced7c2545e237a0 /sys/net/if_ethersubr.c | |
parent | 472d2ef3ede7d23f82e47aa673c48a33d622931f (diff) | |
download | FreeBSD-src-522567dac1ff47b12e0a137b8bd2741e122998eb.zip FreeBSD-src-522567dac1ff47b12e0a137b8bd2741e122998eb.tar.gz |
Replaced some bcopy()'s with memcpy()'s so that gcc while inline/optimize.
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r-- | sys/net/if_ethersubr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 1fce9d4..07d7867 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_ethersubr.c 8.1 (Berkeley) 6/10/93 - * $Id: if_ethersubr.c,v 1.5 1994/12/13 22:31:45 wollman Exp $ + * $Id: if_ethersubr.c,v 1.6 1995/03/16 18:14:25 bde Exp $ */ #include <sys/param.h> @@ -245,7 +245,7 @@ ether_output(ifp, m0, dst, rt0) case AF_UNSPEC: eh = (struct ether_header *)dst->sa_data; - bcopy((caddr_t)eh->ether_dhost, (caddr_t)edst, sizeof (edst)); + (void)memcpy(edst, eh->ether_dhost, sizeof (edst)); type = eh->ether_type; break; @@ -267,10 +267,10 @@ ether_output(ifp, m0, dst, rt0) senderr(ENOBUFS); eh = mtod(m, struct ether_header *); type = htons((u_short)type); - bcopy((caddr_t)&type,(caddr_t)&eh->ether_type, + (void)memcpy(&eh->ether_type, &type, sizeof(eh->ether_type)); - bcopy((caddr_t)edst, (caddr_t)eh->ether_dhost, sizeof (edst)); - bcopy((caddr_t)ac->ac_enaddr, (caddr_t)eh->ether_shost, + (void)memcpy(eh->ether_dhost, edst, sizeof (edst)); + (void)memcpy(eh->ether_shost, ac->ac_enaddr, sizeof(eh->ether_shost)); s = splimp(); /* |