summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-07-25 06:28:00 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-07-25 06:28:00 +0000
commite900940e9c76dd2182cd288558d0031701d82e49 (patch)
tree0efa1c4796c8539f0173f9be0facc8f90b1d5842
parent4108ae8d2a2540232d925035af7365f17d487202 (diff)
downloadrtems-e900940e9c76dd2182cd288558d0031701d82e49.tar.bz2
2003-07-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* network/if_hdlcsubr.c: Use memcopy instead of bcmp, Use memcmp instead of bcmp.
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog5
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.c12
2 files changed, 12 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog b/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog
index 688eef0e77..29045198a9 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * network/if_hdlcsubr.c: Use memcopy instead of bcmp,
+ Use memcmp instead of bcmp.
+
2003-07-18 Till Straumann <strauman@slac.stanford.edu>
PR 288/rtems
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.c b/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.c
index 04179e66a6..424bb5b5bc 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.c
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/network/if_hdlcsubr.c
@@ -232,7 +232,7 @@ hdlc_input(ifp, m)
}
ifp->if_ibytes += m->m_pkthdr.len;
/*
- if (bcmp((caddr_t)etherbroadcastaddr, (caddr_t)eh->ether_dhost,
+ if (memcmp((caddr_t)etherbroadcastaddr, (caddr_t)eh->ether_dhost,
sizeof(etherbroadcastaddr)) == 0)
m->m_flags |= M_BCAST;
else if (eh->ether_dhost[0] & 1)
@@ -286,8 +286,9 @@ hdlc_ifattach(ifp)
sdl->sdl_type = IFT_ETHER;
sdl->sdl_alen = ifp->if_addrlen;
/*
- bcopy((caddr_t)((struct arpcom *)ifp)->ac_enaddr,
- LLADDR(sdl), ifp->if_addrlen);
+ memcpy(LLADDR(sdl),
+ (caddr_t)((struct arpcom *)ifp)->ac_enaddr,
+ ifp->if_addrlen);
*/
break;
}
@@ -329,8 +330,9 @@ hdlc_ioctl(struct ifnet *ifp, int command, caddr_t data)
sa = (struct sockaddr *) & ifr->ifr_data;
/*
- bcopy(((struct arpcom *)ifp->if_softc)->ac_enaddr,
- (caddr_t) sa->sa_data, ETHER_ADDR_LEN);
+ memcpy((caddr_t) sa->sa_data,
+ ((struct arpcom *)ifp->if_softc)->ac_enaddr,
+ ETHER_ADDR_LEN);
*/
}
break;