summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
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