From e5b3858944b5006e0e550c6ec44bf500d459ce43 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Tue, 10 Apr 2012 09:54:29 +0000 Subject: [PATCH] Sync OpenBSD patchset 1087: Minor style nits - return (). --- cmd-find-window.c | 2 +- cmd-join-pane.c | 2 +- window-copy.c | 6 +++--- window.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd-find-window.c b/cmd-find-window.c index 4e88ada8..90adb1ee 100644 --- a/cmd-find-window.c +++ b/cmd-find-window.c @@ -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/cmd-join-pane.c b/cmd-join-pane.c index 6a15a6ca..a4eaf669 100644 --- a/cmd-join-pane.c +++ b/cmd-join-pane.c @@ -70,7 +70,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/window-copy.c b/window-copy.c index 636bee06..7b2a8ae1 100644 --- a/window-copy.c +++ b/window-copy.c @@ -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/window.c b/window.c index c3ae6139..800a716c 100644 --- a/window.c +++ b/window.c @@ -112,7 +112,7 @@ winlink_find_by_window_id(struct winlinks *wwl, u_int id) if (wl->window->id == id) return (wl); } - return NULL; + return (NULL); } int @@ -270,7 +270,7 @@ window_find_by_id(u_int id) if (w->id == id) return (w); } - return NULL; + return (NULL); } struct window *