From: Evan Hunt Date: Tue, 11 Jun 2013 01:53:41 +0000 (-0700) Subject: [master] fix compiler warning X-Git-Tag: v9.10.0a1~295 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=7422f1f98103ca17d4cdc8bd3c875fadb31e272d;p=thirdparty%2Fbind9.git [master] fix compiler warning --- diff --git a/lib/isc/crc64.c b/lib/isc/crc64.c index e83cdc02a46..8869a5cc0eb 100644 --- a/lib/isc/crc64.c +++ b/lib/isc/crc64.c @@ -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);