diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-07-22 17:46:53 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-07-22 17:46:53 +0000 |
commit | d29b57f597a932d9c0b464c165978d789bf134a8 (patch) | |
tree | 654d9df45b396daa10a48595ec974677bfa3dc47 /options.c | |
parent | 0237e1dafdfd94f8526a73ad02f5ed88e24c4c18 (diff) | |
download | rtmux-d29b57f597a932d9c0b464c165978d789bf134a8.tar.gz rtmux-d29b57f597a932d9c0b464c165978d789bf134a8.tar.bz2 rtmux-d29b57f597a932d9c0b464c165978d789bf134a8.zip |
Sync OpenBSD patchset 155:
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.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: options.c,v 1.5 2009-05-15 12:57:36 nicm Exp $ */ +/* $Id: options.c,v 1.6 2009-07-22 17:46:53 tcunha Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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 |