diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-09-13 09:22:43 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-09-13 09:22:43 +0000 |
commit | 80f0523bc1ea57dd89d0ddeb1269f8ab57ec3a80 (patch) | |
tree | db18e27054a7710afe48fcc5821906e0e19de8f8 /usr.sbin/hostapd/hostapd.c | |
parent | bdaaee08cebc8f711cc2b187893a93ccc5fb4763 (diff) |
use memcmp instead of bcmp to compare tree nodes.
Diffstat (limited to 'usr.sbin/hostapd/hostapd.c')
-rw-r--r-- | usr.sbin/hostapd/hostapd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/hostapd/hostapd.c b/usr.sbin/hostapd/hostapd.c index 37563509430..05a036dc7c7 100644 --- a/usr.sbin/hostapd/hostapd.c +++ b/usr.sbin/hostapd/hostapd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hostapd.c,v 1.18 2005/09/09 13:21:13 reyk Exp $ */ +/* $OpenBSD: hostapd.c,v 1.19 2005/09/13 09:22:42 reyk Exp $ */ /* * Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net> @@ -588,7 +588,7 @@ hostapd_entry_update(struct hostapd_table *table, struct hostapd_entry *entry) int hostapd_entry_cmp(struct hostapd_entry *a, struct hostapd_entry *b) { - return (bcmp(a->e_lladdr, b->e_lladdr, IEEE80211_ADDR_LEN)); + return (memcmp(a->e_lladdr, b->e_lladdr, IEEE80211_ADDR_LEN)); } RB_GENERATE(hostapd_tree, hostapd_entry, e_nodes, hostapd_entry_cmp); |