diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2003-12-08 07:54:15 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2003-12-08 07:54:15 +0000 |
| commit | a55a017f42cd3f75d68f3a79b0a8f051b37435b8 (patch) | |
| tree | a76375ea757ab61d6de7a0c5ec2362d2e15d403f /sys/dev/sf | |
| parent | a5b5101f5eb625051381e7cd74ec05aa5f431842 (diff) | |
Notes
Diffstat (limited to 'sys/dev/sf')
| -rw-r--r-- | sys/dev/sf/if_sf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index 254277aff3816..fc56f3bb9a3d9 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -159,7 +159,7 @@ static int sf_setvlan (struct sf_softc *, int, u_int32_t); #endif static u_int8_t sf_read_eeprom (struct sf_softc *, int); -static u_int32_t sf_mchash (caddr_t); +static uint32_t sf_mchash (const uint8_t *); static int sf_miibus_readreg (device_t, int, int); static int sf_miibus_writereg (device_t, int, int, int); @@ -260,11 +260,11 @@ csr_write_4(sc, reg, val) static u_int32_t sf_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 */ |
