From: Grazvydas Ignotas Date: Fri, 29 Dec 2017 01:48:52 +0000 (+0200) Subject: util/crc32: don't drop the const qualifier X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b7347cc3131685591f90eb94f6362a679307067e;p=mesa.git util/crc32: don't drop the const qualifier Signed-off-by: Grazvydas Ignotas Reviewed-by: Eric Engestrom Reviewed-by: Ian Romanick --- diff --git a/src/util/crc32.c b/src/util/crc32.c index 44d637c0f20..f2e01c61e58 100644 --- a/src/util/crc32.c +++ b/src/util/crc32.c @@ -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--)