summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-04-16 17:04:35 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-04-16 17:04:35 -0700
commit71c97a091a511d403fdb8587d0e1240ec3913820 (patch)
tree2ce463ba5dae7e8fe431554ecd3530cf1bf76ab9
parentcde30320d98b95f7c0cec5bed906b7107124f8fa (diff)
Add const qualifiers to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xrefresh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xrefresh.c b/xrefresh.c
index 6f54b74..a2b9a3b 100644
--- a/xrefresh.c
+++ b/xrefresh.c
@@ -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 },