util/crc32: don't drop the const qualifier
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 29 Dec 2017 01:48:52 +0000 (03:48 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 14 Jan 2018 16:47:50 +0000 (18:47 +0200)
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/util/crc32.c

index 44d637c0f2015ae15cb787bb019d19009b31b2b2..f2e01c61e58270f7286fe80b37d011951642b4fc 100644 (file)
@@ -111,7 +111,7 @@ util_crc32_table[256] = {
 uint32_t
 util_hash_crc32(const void *data, size_t size)
 {
-   uint8_t *p = (uint8_t *)data;
+   const uint8_t *p = data;
    uint32_t crc = 0xffffffff;
  
    while (size--)