[master] fix compiler warning

This commit is contained in:
Evan Hunt 2013-06-10 18:53:41 -07:00
parent c51e6991fd
commit 7422f1f981

View file

@ -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);