var_name_to_ptr should have const names
authorHelmut Grohne <helmut@subdivi.de>
Sat, 25 Jul 2009 20:44:58 +0000 (22:44 +0200)
committerHelmut Grohne <helmut@subdivi.de>
Sat, 25 Jul 2009 20:44:58 +0000 (22:44 +0200)
uzbl.c

diff --git a/uzbl.c b/uzbl.c
index dead7d5..bcc2e60 100644 (file)
--- a/uzbl.c
+++ b/uzbl.c
@@ -98,7 +98,7 @@ typedef const struct {
 #define PTR_C(var, t,    fun) { .ptr = (void*)&(var), .type = TYPE_##t, .dump = 0, .writeable = 0, .func = fun }
 
 const struct {
-    char *name;
+    const char *name;
     uzbl_cmdprop cp;
 } var_name_to_ptr[] = {
 /*    variable name         pointer to variable in code            type  dump callback function    */