summaryrefslogtreecommitdiffstats
path: root/sys/dev/bge
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/bge
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/bge')
-rw-r--r--sys/dev/bge/if_bge.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index 123135c..cec9f82 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -206,7 +206,7 @@ static void bge_ifmedia_sts (struct ifnet *, struct ifmediareq *);
static u_int8_t bge_eeprom_getbyte (struct bge_softc *, int, u_int8_t *);
static int bge_read_eeprom (struct bge_softc *, caddr_t, int, int);
-static u_int32_t bge_mchash (caddr_t);
+static uint32_t bge_mchash (const uint8_t *);
static void bge_setmulti (struct bge_softc *);
static void bge_handle_events (struct bge_softc *);
@@ -1130,13 +1130,13 @@ bge_init_tx_ring(sc)
#define BGE_POLY 0xEDB88320
-static u_int32_t
+static uint32_t
bge_mchash(addr)
- caddr_t addr;
+ 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 */
OpenPOWER on IntegriCloud