From 8ee23ef523b36afd5f65865e4985044ca4f0a838 Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 14 Nov 2003 05:45:39 +0000 Subject: reconst poison re-de u_intXX_t --- sys/dev/dc/if_dc.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'sys/dev/dc') diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index 91b4261..c3575a9 100644 --- a/sys/dev/dc/if_dc.c +++ b/sys/dev/dc/if_dc.c @@ -264,8 +264,8 @@ static void dc_miibus_statchg (device_t); static void dc_miibus_mediainit (device_t); static void dc_setcfg (struct dc_softc *, int); -static u_int32_t dc_mchash_le (struct dc_softc *, caddr_t); -static u_int32_t dc_mchash_be (caddr_t); +static uint32_t dc_mchash_le (struct dc_softc *, const uint8_t *); +static uint32_t dc_mchash_be (const uint8_t *); static void dc_setfilt_21143 (struct dc_softc *); static void dc_setfilt_asix (struct dc_softc *); static void dc_setfilt_admtek (struct dc_softc *); @@ -1020,12 +1020,12 @@ dc_miibus_mediainit(device_t dev) #define DC_BITS_128 7 #define DC_BITS_64 6 -static u_int32_t -dc_mchash_le(struct dc_softc *sc, caddr_t addr) +static uint32_t +dc_mchash_le(struct dc_softc *sc, const uint8_t *addr) { - u_int32_t crc; + uint32_t crc; int idx, bit; - u_int8_t data; + uint8_t data; /* Compute CRC for the address value. */ crc = 0xFFFFFFFF; /* initial value */ @@ -1062,12 +1062,12 @@ dc_mchash_le(struct dc_softc *sc, caddr_t addr) /* * Calculate CRC of a multicast group address, return the lower 6 bits. */ -static u_int32_t -dc_mchash_be(caddr_t addr) +static uint32_t +dc_mchash_be(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 */ -- cgit v1.1