diff options
author | obrien <obrien@FreeBSD.org> | 2003-12-08 07:54:15 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-12-08 07:54:15 +0000 |
commit | a1cabe1bbbad4ba662b0615ee6af81256ccca608 (patch) | |
tree | a76375ea757ab61d6de7a0c5ec2362d2e15d403f /sys/pci/if_rl.c | |
parent | 4867d63660a56522f101639e5641133ac86d1636 (diff) | |
download | FreeBSD-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/pci/if_rl.c')
-rw-r--r-- | sys/pci/if_rl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c index 746ecdd..921d047 100644 --- a/sys/pci/if_rl.c +++ b/sys/pci/if_rl.c @@ -206,7 +206,7 @@ static int rl_miibus_readreg (device_t, int, int); static int rl_miibus_writereg (device_t, int, int, int); static void rl_miibus_statchg (device_t); -static u_int32_t rl_mchash (caddr_t); +static uint32_t rl_mchash (const uint8_t *); static void rl_setmulti (struct rl_softc *); static void rl_reset (struct rl_softc *); static int rl_list_tx_init (struct rl_softc *); @@ -737,11 +737,11 @@ rl_miibus_statchg(dev) */ static u_int32_t rl_mchash(addr) - caddr_t addr; + const uint8_t *addr; { - u_int32_t crc, carry; - int idx, bit; - u_int8_t data; + uint32_t crc, carry; + int idx, bit; + uint8_t data; /* Compute CRC for the address value. */ crc = 0xFFFFFFFF; /* initial value */ |