mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user