summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-05-15 12:57:36 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-05-15 12:57:36 +0000
commit0b54a2d72374ec3ad73f7b2c8b666f8ec2411f54 (patch)
tree5cd3f4d17e8415517e764b01ff87446184d74953 /options.c
parent8913d853e45735442c3b59a7b608525f980eed68 (diff)
Don't use -Wcast-qual and use explicit casts to shut gcc up in the few cases we can't avoid using a char *.
Diffstat (limited to 'options.c')
-rw-r--r--options.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/options.c b/options.c
index 140135ea..de02be0c 100644
--- a/options.c
+++ b/options.c
@@ -1,4 +1,4 @@
-/* $Id: options.c,v 1.4 2009-01-07 19:53:17 nicm Exp $ */
+/* $Id: options.c,v 1.5 2009-05-15 12:57:36 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -63,7 +63,7 @@ options_find1(struct options *oo, const char *name)
{
struct options_entry p;
- p.name = name;
+ p.name = (char *) name;
return (SPLAY_FIND(options_tree, &oo->tree, &p));
}
@@ -72,7 +72,7 @@ options_find(struct options *oo, const char *name)
{
struct options_entry *o, p;
- p.name = name;
+ p.name = (char *) name;
o = SPLAY_FIND(options_tree, &oo->tree, &p);
while (o == NULL) {
oo = oo->parent;