diff options
author | 2009-07-21 19:54:22 +0000 | |
---|---|---|
committer | 2009-07-21 19:54:22 +0000 | |
commit | 980b7663d4908e6a49e53cfc3fb6925416ea415f (patch) | |
tree | 7e75667e1f16ec96fbe336c92a6375733e0127c1 /usr.bin/tmux/options.c | |
parent | Nix a few unused attributes on arguments which are no longer unused. (diff) | |
download | wireguard-openbsd-980b7663d4908e6a49e53cfc3fb6925416ea415f.tar.xz wireguard-openbsd-980b7663d4908e6a49e53cfc3fb6925416ea415f.zip |
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 'usr.bin/tmux/options.c')
-rw-r--r-- | usr.bin/tmux/options.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/tmux/options.c b/usr.bin/tmux/options.c index 11f653481aa..6b9f9698139 100644 --- a/usr.bin/tmux/options.c +++ b/usr.bin/tmux/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.1 2009/06/01 22:58:49 nicm Exp $ */ +/* $OpenBSD: options.c,v 1.2 2009/07/21 19:54:22 nicm 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 |