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/dev/tx | |
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/dev/tx')
-rw-r--r-- | sys/dev/tx/if_tx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c index fa4fc9d..6a6f3c8 100644 --- a/sys/dev/tx/if_tx.c +++ b/sys/dev/tx/if_tx.c @@ -101,7 +101,7 @@ static void epic_start_activity(epic_softc_t *); static void epic_set_rx_mode(epic_softc_t *); static void epic_set_tx_mode(epic_softc_t *); static void epic_set_mc_table(epic_softc_t *); -static u_int32_t tx_mchash(caddr_t); +static uint32_t tx_mchash(const uint8_t *); static int epic_read_eeprom(epic_softc_t *,u_int16_t); static void epic_output_eepromw(epic_softc_t *, u_int16_t); static u_int16_t epic_input_eepromw(epic_softc_t *); @@ -1425,13 +1425,13 @@ epic_set_mc_table(sc) /* * Synopsis: calculate EPIC's hash of multicast address. */ -static u_int32_t +static uint32_t tx_mchash(addr) - caddr_t addr; + const uint8_t *addr; { - u_int32_t crc, carry; + uint32_t crc, carry; int idx, bit; - u_int8_t data; + uint8_t data; /* Compute CRC for the address value. */ crc = 0xFFFFFFFF; /* initial value */ |