summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchris <chris@openbsd.org>2014-01-20 17:17:08 +0000
committerchris <chris@openbsd.org>2014-01-20 17:17:08 +0000
commit2f155a4a419a52c168d16fb60d3e44effeecd2ce (patch)
tree865d76621795bf30fbf83262844f774b8b192a1b
parentbzero to memset (diff)
downloadwireguard-openbsd-2f155a4a419a52c168d16fb60d3e44effeecd2ce.tar.xz
wireguard-openbsd-2f155a4a419a52c168d16fb60d3e44effeecd2ce.zip
bcmp to memcmp
ok mikeb@
-rw-r--r--sys/dev/pci/if_oce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_oce.c b/sys/dev/pci/if_oce.c
index 77cc66af2c3..c50bda849a9 100644
--- a/sys/dev/pci/if_oce.c
+++ b/sys/dev/pci/if_oce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_oce.c,v 1.72 2014/01/20 17:14:56 chris Exp $ */
+/* $OpenBSD: if_oce.c,v 1.73 2014/01/20 17:17:08 chris Exp $ */
/*
* Copyright (c) 2012 Mike Belopuhov
@@ -3186,7 +3186,7 @@ oce_macaddr_set(struct oce_softc *sc)
uint32_t old_pmac_id = sc->sc_pmac_id;
int status = 0;
- if (!bcmp(sc->sc_macaddr, sc->sc_ac.ac_enaddr, ETHER_ADDR_LEN))
+ if (!memcmp(sc->sc_macaddr, sc->sc_ac.ac_enaddr, ETHER_ADDR_LEN))
return;
status = oce_macaddr_add(sc, sc->sc_ac.ac_enaddr, &sc->sc_pmac_id);