From 97bf3cc2cc35da7144565cd49756913d282ec2e0 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 23 Oct 2003 16:55:27 +0000 Subject: [PATCH] Const poison the crc calcuation routines so const data can be sent to it. --- sys/dev/usb/if_cue.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c index d3a5c490976..9497aabde95 100644 --- a/sys/dev/usb/if_cue.c +++ b/sys/dev/usb/if_cue.c @@ -116,7 +116,7 @@ Static void cue_watchdog(struct ifnet *); Static void cue_shutdown(device_ptr_t); Static void cue_setmulti(struct cue_softc *); -Static u_int32_t cue_crc(caddr_t); +Static u_int32_t cue_crc(const uint8_t *); Static void cue_reset(struct cue_softc *); Static int cue_csr_read_1(struct cue_softc *, int); @@ -331,9 +331,9 @@ cue_getmac(struct cue_softc *sc, void *buf) #define CUE_BITS 9 Static u_int32_t -cue_crc(caddr_t addr) +cue_crc(const uint8_t *addr) { - u_int32_t idx, bit, data, crc; + uint32_t idx, bit, data, crc; /* Compute CRC for the address value. */ crc = 0xFFFFFFFF; /* initial value */