summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-10-23 16:55:27 +0000
committerimp <imp@FreeBSD.org>2003-10-23 16:55:27 +0000
commit16ef5239b2e9f3bd097c3a6e24090345636b20cd (patch)
tree3da787c6c0c01533174fd5f3ef1dfc456aa9fd5a
parentb5fba617ddb211fd091033c57d49d8680cba5217 (diff)
downloadFreeBSD-src-16ef5239b2e9f3bd097c3a6e24090345636b20cd.zip
FreeBSD-src-16ef5239b2e9f3bd097c3a6e24090345636b20cd.tar.gz
Const poison the crc calcuation routines so const data can be sent to
it.
-rw-r--r--sys/dev/usb/if_cue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c
index d3a5c49..9497aab 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 */
OpenPOWER on IntegriCloud