summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_hash.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-12-22 16:55:27 +0000
committerJosé Fonseca <[email protected]>2008-12-22 16:55:27 +0000
commitae7e75d6108e8621878083b35a13edc1aca893df (patch)
tree6d637af9eff90e245d46f97a923ffdc0b0aaa954 /src/gallium/auxiliary/util/u_hash.c
parent229424b2d79f7ab19c6799795df155c265e3f258 (diff)
gallium: const correctness.
Diffstat (limited to 'src/gallium/auxiliary/util/u_hash.c')
-rw-r--r--src/gallium/auxiliary/util/u_hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_hash.c b/src/gallium/auxiliary/util/u_hash.c
index 508a31f2cbd..b67653ec708 100644
--- a/src/gallium/auxiliary/util/u_hash.c
+++ b/src/gallium/auxiliary/util/u_hash.c
@@ -36,7 +36,7 @@
#include "u_hash.h"
-static uint32_t
+static const uint32_t
util_crc32_table[256] = {
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,
@@ -109,7 +109,7 @@ util_crc32_table[256] = {
* @sa http://www.w3.org/TR/PNG/#D-CRCAppendix
*/
uint32_t
-util_hash_crc32(void *data, size_t size)
+util_hash_crc32(const void *data, size_t size)
{
uint8_t *p = (uint8_t *)data;
uint32_t crc = 0xffffffff;