projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e637896
)
util/crc32: don't drop the const qualifier
author
Grazvydas Ignotas
<notasas@gmail.com>
Fri, 29 Dec 2017 01:48:52 +0000
(
03:48
+0200)
committer
Grazvydas 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
patch
|
blob
|
history
diff --git
a/src/util/crc32.c
b/src/util/crc32.c
index 44d637c0f2015ae15cb787bb019d19009b31b2b2..f2e01c61e58270f7286fe80b37d011951642b4fc 100644
(file)
--- 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--)