From a1cabe1bbbad4ba662b0615ee6af81256ccca608 Mon Sep 17 00:00:00 2001 From: obrien Date: Mon, 8 Dec 2003 07:54:15 +0000 Subject: Don't use caddr_t in mchash(). Also use C99 spellings over BSD ones. Requested by: bde,imp --- sys/dev/vr/if_vr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/dev/vr') diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c index 1d35c3f..c2221be 100644 --- a/sys/dev/vr/if_vr.c +++ b/sys/dev/vr/if_vr.c @@ -160,7 +160,7 @@ static int vr_miibus_writereg (device_t, int, int, int); static void vr_miibus_statchg (device_t); static void vr_setcfg (struct vr_softc *, int); -static u_int32_t vr_mchash (caddr_t); +static uint32_t vr_mchash (const uint8_t *); static void vr_setmulti (struct vr_softc *); static void vr_reset (struct vr_softc *); static int vr_list_rx_init (struct vr_softc *); @@ -566,11 +566,11 @@ vr_miibus_statchg(dev) */ static u_int32_t vr_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 */ -- cgit v1.1