2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

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

This commit is contained in:
Mark Andrews 2013-06-11 12:25:43 +10:00
parent 7422f1f981
commit 8dda0f671d
2 changed files with 3 additions and 5 deletions

View File

@ -122,15 +122,13 @@ 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;
isc_crc64_update(isc_uint64_t *crc, const void *data, size_t len) {
const unsigned char *p = data;
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);

View File

@ -36,7 +36,7 @@ isc_crc64_init(isc_uint64_t *crc);
*/
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.
*