mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-25 19:04:57 -05:00
[master] fix compiler warning
This commit is contained in:
parent
c51e6991fd
commit
7422f1f981
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue