Commit 8dda0f67 authored by Mark Andrews's avatar Mark Andrews
Browse files

remove unnecessary DE_CONST; pass in as (const void *)

parent 7422f1f9
...@@ -122,15 +122,13 @@ isc_crc64_init(isc_uint64_t *crc) { ...@@ -122,15 +122,13 @@ isc_crc64_init(isc_uint64_t *crc) {
} }
void void
isc_crc64_update(isc_uint64_t *crc, const isc_uint8_t *data, size_t len) { isc_crc64_update(isc_uint64_t *crc, const void *data, size_t len) {
unsigned char *p; const unsigned char *p = data;
int i; int i;
REQUIRE(crc != NULL); REQUIRE(crc != NULL);
REQUIRE(data != NULL); REQUIRE(data != NULL);
DE_CONST(data, p);
while (len-- > 0) { while (len-- > 0) {
i = ((int) (*crc >> 56) ^ *p++) & 0xff; i = ((int) (*crc >> 56) ^ *p++) & 0xff;
*crc = crc64_table[i] ^ (*crc << 8); *crc = crc64_table[i] ^ (*crc << 8);
......
...@@ -36,7 +36,7 @@ isc_crc64_init(isc_uint64_t *crc); ...@@ -36,7 +36,7 @@ isc_crc64_init(isc_uint64_t *crc);
*/ */
void void
isc_crc64_update(isc_uint64_t *crc, const isc_uint8_t *data, size_t len); isc_crc64_update(isc_uint64_t *crc, const void *data, size_t len);
/*% /*%
* Add data to the CRC. * Add data to the CRC.
* *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment