Commit 7422f1f9 authored by Evan Hunt's avatar Evan Hunt
Browse files

[master] fix compiler warning

parent c51e6991
......@@ -123,12 +123,14 @@ isc_crc64_init(isc_uint64_t *crc) {
void
isc_crc64_update(isc_uint64_t *crc, const isc_uint8_t *data, size_t len) {
unsigned char *p = data;
unsigned char *p;
int i;
REQUIRE(crc != NULL);
REQUIRE(data != NULL);
DE_CONST(data, p);
while (len-- > 0) {
i = ((int) (*crc >> 56) ^ *p++) & 0xff;
*crc = crc64_table[i] ^ (*crc << 8);
......
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