diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-04-16 17:04:35 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-04-16 17:04:35 -0700 |
commit | 71c97a091a511d403fdb8587d0e1240ec3913820 (patch) | |
tree | 2ce463ba5dae7e8fe431554ecd3530cf1bf76ab9 | |
parent | cde30320d98b95f7c0cec5bed906b7107124f8fa (diff) |
Add const qualifiers to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xrefresh.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -88,7 +88,7 @@ static int parse_boolean_option(char *option) { static struct _booltable { - char *name; + const char *name; int value; } booltable[] = { { "off", 0 }, { "n", 0 }, { "no", 0 }, { "false", 0 }, @@ -114,7 +114,7 @@ parse_boolean_option(char *option) */ static Bool -isabbreviation(char *arg, char *s, int minslen) +isabbreviation(const char *arg, char *s, int minslen) { int arglen; int slen; @@ -139,7 +139,7 @@ isabbreviation(char *arg, char *s, int minslen) enum e_action {doDefault, doBlack, doWhite, doSolid, doNone, doRoot}; static struct s_pair { - char *resource_name; + const char *resource_name; enum e_action action; } pair_table[] = { { "Black", doBlack }, |