summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
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/ed
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/ed')
-rw-r--r--sys/dev/ed/if_ed.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 063e7bb..d34c395 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -104,7 +104,7 @@ static u_short ed_pio_write_mbufs(struct ed_softc *, struct mbuf *, int);
static void ed_setrcr (struct ed_softc *);
-static u_int32_t ds_mchash (caddr_t addr);
+static uint32_t ds_mchash (const uint8_t *);
/*
* Interrupt conversion table for WD/SMC ASIC/83C584
@@ -3531,14 +3531,14 @@ ed_setrcr(sc)
/*
* Compute crc for ethernet address
*/
-static u_int32_t
+static uint32_t
ds_mchash(addr)
- caddr_t addr;
+ const uint8_t *addr;
{
#define ED_POLYNOMIAL 0x04c11db6
- register u_int32_t crc = 0xffffffff;
+ register uint32_t crc = 0xffffffff;
register int carry, idx, bit;
- register u_char data;
+ register uint8_t data;
for (idx = 6; --idx >= 0;) {
for (data = *addr++, bit = 8; --bit >= 0; data >>=1 ) {
OpenPOWER on IntegriCloud