Don't use -Wcast-qual and use explicit casts to shut gcc up in the few cases we can't avoid using a char *.

This commit is contained in:
Nicholas Marriott
2009-05-15 12:57:36 +00:00
parent 8913d853e4
commit 0b54a2d723
4 changed files with 13 additions and 13 deletions

View File

@ -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;