Mesa (10.1): mesa/main: Make get_hash.c values constant.
Carl Worth
cworth at kemper.freedesktop.org
Mon Jun 23 23:29:59 UTC 2014
Module: Mesa
Branch: 10.1
Commit: 28896085345b9a1818143d462127146ce51e25b8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=28896085345b9a1818143d462127146ce51e25b8
Author: José Fonseca <jfonseca at vmware.com>
Date: Sun Jun 1 08:54:18 2014 +0100
mesa/main: Make get_hash.c values constant.
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Cc: "10.1 10.2" <mesa-stable at lists.freedesktop.org>
(cherry picked from commit 53468dee0359a4ec3c9edd334656de0ddc47e477)
---
src/mesa/main/get_hash_generator.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/get_hash_generator.py b/src/mesa/main/get_hash_generator.py
index 96bc495..b200d19 100644
--- a/src/mesa/main/get_hash_generator.py
+++ b/src/mesa/main/get_hash_generator.py
@@ -52,7 +52,7 @@ def print_header():
(prime_factor, prime_step)
def print_params(params):
- print "static struct value_desc values[] = {"
+ print "static const struct value_desc values[] = {"
for p in params:
print " { %s, %s }," % (p[0], p[1])
More information about the mesa-commit
mailing list