summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-21 19:54:22 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-21 19:54:22 +0000
commit76a9d9856272dc8210e1f2a2a832ef4455e2ca1e (patch)
tree860c48c3d9653999482c84bf5c669bf5e3c6122b /options.c
parent6945e86fd7540c610f7e58e4a964fed384048823 (diff)
Make some functions which return unused values void (mostly found by lint) and
tweak a redundant expression in window_pane_set_mode.
Diffstat (limited to 'options.c')
-rw-r--r--options.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/options.c b/options.c
index c742e092..45d9f714 100644
--- a/options.c
+++ b/options.c
@@ -83,20 +83,19 @@ options_find(struct options *oo, const char *name)
return (o);
}
-int
+void
options_remove(struct options *oo, const char *name)
{
struct options_entry *o;
if ((o = options_find1(oo, name)) == NULL)
- return (-1);
+ return;
SPLAY_REMOVE(options_tree, &oo->tree, o);
xfree(o->name);
if (o->type == OPTIONS_STRING)
xfree(o->value.string);
xfree(o);
- return (0);
}
void printflike3