diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-04-01 20:53:48 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-04-01 20:53:48 +0000 |
commit | 7b7c9157e56baf3d29177a21bec70de714fa4465 (patch) | |
tree | 8b2db4f4020d3f18c37ad518e172cbf716c1f16d | |
parent | 1183b5668486030468b98e11c4abe0d054829223 (diff) |
Minor style nits - return ().
-rw-r--r-- | usr.bin/tmux/cmd-find-window.c | 4 | ||||
-rw-r--r-- | usr.bin/tmux/cmd-join-pane.c | 4 | ||||
-rw-r--r-- | usr.bin/tmux/window-copy.c | 8 | ||||
-rw-r--r-- | usr.bin/tmux/window.c | 6 |
4 files changed, 11 insertions, 11 deletions
diff --git a/usr.bin/tmux/cmd-find-window.c b/usr.bin/tmux/cmd-find-window.c index 34d1b97d222..a8655623ca0 100644 --- a/usr.bin/tmux/cmd-find-window.c +++ b/usr.bin/tmux/cmd-find-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-find-window.c,v 1.11 2012/04/01 08:10:56 nicm Exp $ */ +/* $OpenBSD: cmd-find-window.c,v 1.12 2012/04/01 20:53:47 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -75,7 +75,7 @@ cmd_find_window_match_flags(struct args *args) if (match_flags == 0) match_flags = CMD_FIND_WINDOW_ALL; - return match_flags; + return (match_flags); } int diff --git a/usr.bin/tmux/cmd-join-pane.c b/usr.bin/tmux/cmd-join-pane.c index fc9e06231d0..6007a783fa7 100644 --- a/usr.bin/tmux/cmd-join-pane.c +++ b/usr.bin/tmux/cmd-join-pane.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-join-pane.c,v 1.9 2012/03/17 22:35:09 nicm Exp $ */ +/* $OpenBSD: cmd-join-pane.c,v 1.10 2012/04/01 20:53:47 nicm Exp $ */ /* * Copyright (c) 2011 George Nachman <tmux@georgester.com> @@ -71,7 +71,7 @@ cmd_join_pane_key_binding(struct cmd *self, int key) int cmd_join_pane_exec(struct cmd *self, struct cmd_ctx *ctx) { - return join_pane(self, ctx, self->entry == &cmd_join_pane_entry); + return (join_pane(self, ctx, self->entry == &cmd_join_pane_entry)); } int diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c index 78788b7a549..825a568c50d 100644 --- a/usr.bin/tmux/window-copy.c +++ b/usr.bin/tmux/window-copy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-copy.c,v 1.79 2012/04/01 09:23:31 nicm Exp $ */ +/* $OpenBSD: window-copy.c,v 1.80 2012/04/01 20:53:47 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -805,14 +805,14 @@ window_copy_key_numeric_prefix(struct window_pane *wp, int key) key &= KEYC_MASK_KEY; if (key < '0' || key > '9') - return 1; + return (1); if (data->numprefix >= 100) /* no more than three digits */ - return 0; + return (0); data->numprefix = data->numprefix * 10 + key - '0'; window_copy_redraw_lines(wp, screen_size_y(s) - 1, 1); - return 0; + return (0); } /* ARGSUSED */ diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index 94a059dc4d6..d1a7dc5d1b1 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.77 2012/04/01 13:18:38 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.78 2012/04/01 20:53:47 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -115,7 +115,7 @@ winlink_find_by_window_id(struct winlinks *wwl, u_int id) if (wl->window->id == id) return (wl); } - return NULL; + return (NULL); } int @@ -273,7 +273,7 @@ window_find_by_id(u_int id) if (w->id == id) return (w); } - return NULL; + return (NULL); } struct window * |