[Mesa-dev] [PATCH 1/2] mesa/main: Make get_hash.c values constant.

jfonseca at vmware.com jfonseca at vmware.com
Sun Jun 1 12:56:57 PDT 2014


From: José Fonseca <jfonseca at vmware.com>

---
 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])
 
-- 
2.0.0.rc2



More information about the mesa-dev mailing list