summaryrefslogtreecommitdiffstats
path: root/sys/dev/lnc
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-12-08 07:54:15 +0000
committerobrien <obrien@FreeBSD.org>2003-12-08 07:54:15 +0000
commita1cabe1bbbad4ba662b0615ee6af81256ccca608 (patch)
treea76375ea757ab61d6de7a0c5ec2362d2e15d403f /sys/dev/lnc
parent4867d63660a56522f101639e5641133ac86d1636 (diff)
downloadFreeBSD-src-a1cabe1bbbad4ba662b0615ee6af81256ccca608.zip
FreeBSD-src-a1cabe1bbbad4ba662b0615ee6af81256ccca608.tar.gz
Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones.
Requested by: bde,imp
Diffstat (limited to 'sys/dev/lnc')
-rw-r--r--sys/dev/lnc/if_lnc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c
index 1e7e9c3..e463c46 100644
--- a/sys/dev/lnc/if_lnc.c
+++ b/sys/dev/lnc/if_lnc.c
@@ -189,13 +189,13 @@ lance_probe(struct lnc_softc *sc)
return (UNKNOWN);
}
-static __inline u_int32_t
-lnc_mchash(caddr_t ether_addr)
+static __inline uint32_t
+lnc_mchash(const uint8_t *ether_addr)
{
#define LNC_POLYNOMIAL 0xEDB88320UL
- u_int32_t crc = 0xFFFFFFFFUL;
+ uint32_t crc = 0xFFFFFFFF;
int idx, bit;
- u_int8_t data;
+ uint8_t data;
for (idx = 0; idx < ETHER_ADDR_LEN; idx++) {
for (data = *ether_addr++, bit = 0; bit < MULTICAST_FILTER_LEN; bit++) {
OpenPOWER on IntegriCloud