Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Eliminate a function call... we know its exactly one...



details:   https://anonhg.NetBSD.org/src/rev/333406beb9bf
branches:  trunk
changeset: 475818:333406beb9bf
user:      is <is%NetBSD.org@localhost>
date:      Thu Aug 26 19:56:08 1999 +0000

description:
Eliminate a function call... we know its exactly one byte here

diffstat:

 sys/net/if_arcsubr.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d3cd82ac9784 -r 333406beb9bf sys/net/if_arcsubr.c
--- a/sys/net/if_arcsubr.c      Thu Aug 26 14:52:04 1999 +0000
+++ b/sys/net/if_arcsubr.c      Thu Aug 26 19:56:08 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_arcsubr.c,v 1.21 1999/05/18 23:57:20 thorpej Exp $  */
+/*     $NetBSD: if_arcsubr.c,v 1.22 1999/08/26 19:56:08 is Exp $       */
 
 /*
  * Copyright (c) 1994, 1995 Ignatios Souvatzis
@@ -653,7 +653,7 @@
           sdl->sdl_family == AF_LINK) {
                sdl->sdl_type = IFT_ARCNET;
                sdl->sdl_alen = ifp->if_addrlen;
-               bcopy((caddr_t)&lla, LLADDR(sdl), ifp->if_addrlen);
+               *(LLADDR(sdl)) = lla;
        }
        ifp->if_broadcastaddr = &arcbroadcastaddr;
 }



Home | Main Index | Thread Index | Old Index