summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_xl.c
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/pci/if_xl.c
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/pci/if_xl.c')
-rw-r--r--sys/pci/if_xl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c
index e087506..a3a82ae 100644
--- a/sys/pci/if_xl.c
+++ b/sys/pci/if_xl.c
@@ -238,7 +238,7 @@ static int xl_mii_writereg (struct xl_softc *, struct xl_mii_frame *);
static void xl_setcfg (struct xl_softc *);
static void xl_setmode (struct xl_softc *, int);
-static u_int32_t xl_mchash (caddr_t);
+static uint32_t xl_mchash (const uint8_t *);
static void xl_setmulti (struct xl_softc *);
static void xl_setmulti_hash (struct xl_softc *);
static void xl_reset (struct xl_softc *);
@@ -812,11 +812,11 @@ xl_read_eeprom(sc, dest, off, cnt, swap)
*/
static u_int32_t
xl_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 */
OpenPOWER on IntegriCloud