]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove unnecessary DE_CONST; pass in as (const void *)
authorMark Andrews <marka@isc.org>
Tue, 11 Jun 2013 02:25:43 +0000 (12:25 +1000)
committerMark Andrews <marka@isc.org>
Tue, 11 Jun 2013 02:25:43 +0000 (12:25 +1000)
lib/isc/crc64.c
lib/isc/include/isc/crc64.h

index 8869a5cc0ebc86ff488a49e0560a40560220e5b9..cfabc9800d7a8a47444c6637940c34e4631404a2 100644 (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);
index 0403fec08e63172a0191ec03d1d104a5f1669ffb..18efb71923339a39384452b274debcb66c0ff969 100644 (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.
  *