diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2017-12-29 03:48:52 +0200 |
---|---|---|
committer | Grazvydas Ignotas <notasas@gmail.com> | 2018-01-14 18:47:50 +0200 |
commit | b7347cc3131685591f90eb94f6362a679307067e (patch) | |
tree | 5b5d349b70004bd83fc8c16abf18bb6a4a67ccbf | |
parent | e6378962ce43727056756a373f5001da041b160e (diff) |
util/crc32: don't drop the const qualifier
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>
-rw-r--r-- | src/util/crc32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/crc32.c b/src/util/crc32.c index 44d637c0f2..f2e01c61e5 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--) |