bcmp -> memcmp.

This commit is contained in:
wiz 2002-05-22 16:03:14 +00:00
parent 45bbb2368f
commit f7d76b1062
6 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ni.c,v 1.14 2001/11/13 12:51:34 lukem Exp $ */
/* $NetBSD: if_ni.c,v 1.15 2002/05/22 16:03:14 wiz Exp $ */
/*
* Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
*
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ni.c,v 1.14 2001/11/13 12:51:34 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ni.c,v 1.15 2002/05/22 16:03:14 wiz Exp $");
#include "opt_inet.h"
#include "bpfilter.h"
@ -846,7 +846,7 @@ ni_setup(struct ni_softc *sc)
ETHER_FIRST_MULTI(step, &sc->sc_ec, enm);
i = 1;
while (enm != NULL) {
if (bcmp(enm->enm_addrlo, enm->enm_addrhi, 6)) {
if (memcmp(enm->enm_addrlo, enm->enm_addrhi, 6)) {
ifp->if_flags |= IFF_ALLMULTI;
ptdb->np_flags |= PTDB_AMC;
break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: bktr_core.c,v 1.20 2001/11/13 07:29:36 lukem Exp $ */
/* $NetBSD: bktr_core.c,v 1.21 2002/05/22 16:03:16 wiz Exp $ */
/* FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.114 2000/10/31 13:09:56 roger Exp */
@ -97,7 +97,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bktr_core.c,v 1.20 2001/11/13 07:29:36 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: bktr_core.c,v 1.21 2002/05/22 16:03:16 wiz Exp $");
#include "opt_bktr.h" /* Include any kernel config options */
@ -3764,7 +3764,7 @@ static int oformat_meteor_to_bt( u_long format )
if (( pf1->type == pf2->type ) &&
( pf1->Bpp == pf2->Bpp ) &&
!bcmp( pf1->masks, pf2->masks, sizeof( pf1->masks )) &&
!memcmp( pf1->masks, pf2->masks, sizeof( pf1->masks )) &&
( pf1->swap_bytes == pf2->swap_bytes ) &&
( pf1->swap_shorts == pf2->swap_shorts ))
break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_il.c,v 1.4 2002/03/05 04:12:59 itojun Exp $ */
/* $NetBSD: if_il.c,v 1.5 2002/05/22 16:03:17 wiz Exp $ */
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
* All rights reserved.
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_il.c,v 1.4 2002/03/05 04:12:59 itojun Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_il.c,v 1.5 2002/05/22 16:03:17 wiz Exp $");
#include "opt_inet.h"
#include "opt_ns.h"
@ -326,7 +326,7 @@ ilinit(struct ifnet *ifp)
IL_WCSR(IL_CSR, ((sc->sc_ui.ui_baddr >> 2) & IL_EUA)|ILC_STAT);
if (ilwait(sc, "verifying setaddr"))
return 0;
if (bcmp((caddr_t)sc->sc_stats.ils_addr,
if (memcmp((caddr_t)sc->sc_stats.ils_addr,
(caddr_t)LLADDR(ifp->if_sadl), ETHER_ADDR_LEN) != 0) {
printf("%s: setaddr didn't work\n",
sc->sc_dev.dv_xname);
@ -611,8 +611,8 @@ iltotal(struct il_softc *sc)
*sum++ += *interval++;
sc->sc_if.if_collisions = sc->sc_sum.ils_collis;
if ((sc->sc_flags & ILF_SETADDR) &&
(bcmp((caddr_t)sc->sc_stats.ils_addr, LLADDR(ifp->if_sadl),
ETHER_ADDR_LEN) != 0)) {
(memcmp((caddr_t)sc->sc_stats.ils_addr, LLADDR(ifp->if_sadl),
ETHER_ADDR_LEN) != 0)) {
log(LOG_ERR, "%s: physaddr reverted\n", sc->sc_dev.dv_xname);
sc->sc_flags &= ~ILF_RUNNING;
ilinit(&sc->sc_if);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_qe.c,v 1.49 2001/11/13 07:11:24 lukem Exp $ */
/* $NetBSD: if_qe.c,v 1.50 2002/05/22 16:03:17 wiz Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
*
@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_qe.c,v 1.49 2001/11/13 07:11:24 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_qe.c,v 1.50 2002/05/22 16:03:17 wiz Exp $");
#include "opt_inet.h"
#include "bpfilter.h"
@ -765,7 +765,7 @@ qe_setup(struct qe_softc *sc)
ifp->if_flags &= ~IFF_ALLMULTI;
ETHER_FIRST_MULTI(step, &sc->sc_ec, enm);
while (enm != NULL) {
if (bcmp(enm->enm_addrlo, enm->enm_addrhi, 6)) {
if (memcmp(enm->enm_addrlo, enm->enm_addrhi, 6)) {
ifp->if_flags |= IFF_ALLMULTI;
break;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: be.c,v 1.31 2002/03/20 20:39:15 eeh Exp $ */
/* $NetBSD: be.c,v 1.32 2002/05/22 16:03:18 wiz Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: be.c,v 1.31 2002/03/20 20:39:15 eeh Exp $");
__KERNEL_RCSID(0, "$NetBSD: be.c,v 1.32 2002/05/22 16:03:18 wiz Exp $");
#include "opt_ddb.h"
#include "opt_inet.h"
@ -1213,7 +1213,7 @@ be_mcreset(sc)
ETHER_FIRST_MULTI(step, ec, enm);
while (enm != NULL) {
if (bcmp(enm->enm_addrlo, enm->enm_addrhi, ETHER_ADDR_LEN)) {
if (memcmp(enm->enm_addrlo, enm->enm_addrhi, ETHER_ADDR_LEN)) {
/*
* We must listen to a range of multicast
* addresses. For now, just accept all

View File

@ -1,4 +1,4 @@
/* $NetBSD: qe.c,v 1.22 2002/03/20 17:57:33 eeh Exp $ */
/* $NetBSD: qe.c,v 1.23 2002/05/22 16:03:19 wiz Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: qe.c,v 1.22 2002/03/20 17:57:33 eeh Exp $");
__KERNEL_RCSID(0, "$NetBSD: qe.c,v 1.23 2002/05/22 16:03:19 wiz Exp $");
#define QEDEBUG
@ -1173,7 +1173,7 @@ qe_mcreset(sc)
ETHER_FIRST_MULTI(step, ec, enm);
while (enm != NULL) {
if (bcmp(enm->enm_addrlo, enm->enm_addrhi,
if (memcmp(enm->enm_addrlo, enm->enm_addrhi,
ETHER_ADDR_LEN) != 0) {
/*
* We must listen to a range of multicast