version 1.1, 2009/06/01 22:58:49 |
version 1.2, 2009/07/21 19:54:22 |
|
|
return (o); |
return (o); |
} |
} |
|
|
int |
void |
options_remove(struct options *oo, const char *name) |
options_remove(struct options *oo, const char *name) |
{ |
{ |
struct options_entry *o; |
struct options_entry *o; |
|
|
if ((o = options_find1(oo, name)) == NULL) |
if ((o = options_find1(oo, name)) == NULL) |
return (-1); |
return; |
|
|
SPLAY_REMOVE(options_tree, &oo->tree, o); |
SPLAY_REMOVE(options_tree, &oo->tree, o); |
xfree(o->name); |
xfree(o->name); |
if (o->type == OPTIONS_STRING) |
if (o->type == OPTIONS_STRING) |
xfree(o->value.string); |
xfree(o->value.string); |
xfree(o); |
xfree(o); |
return (0); |
|
} |
} |
|
|
void printflike3 |
void printflike3 |