From 76a9d9856272dc8210e1f2a2a832ef4455e2ca1e Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 21 Jul 2009 19:54:22 +0000 Subject: Make some functions which return unused values void (mostly found by lint) and tweak a redundant expression in window_pane_set_mode. --- options.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'options.c') 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 -- cgit