summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-09-25 19:06:00 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-09-25 19:06:00 +0000
commit1ba0468c00bb8a5f7de78d39390eb3afbb5aa929 (patch)
tree14f9a070e0014c054bf82a409c34699f8214285b /usr.bin
parent5b109444ce54302fbe194f41d59ac120f7e2a6c0 (diff)
Style and line length nits.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/input.c5
-rw-r--r--usr.bin/tmux/window-tree.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index 49c469ef1b0..55253750b41 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.160 2019/09/24 20:44:58 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.161 2019/09/25 19:05:59 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -923,7 +923,8 @@ input_parse_buffer(struct window_pane *wp, u_char *buf, size_t len)
ictx->ch > itr->last) {
itr = ictx->state->transitions;
while (itr->first != -1 && itr->last != -1) {
- if (ictx->ch >= itr->first && ictx->ch <= itr->last)
+ if (ictx->ch >= itr->first &&
+ ictx->ch <= itr->last)
break;
itr++;
}
diff --git a/usr.bin/tmux/window-tree.c b/usr.bin/tmux/window-tree.c
index b4ceb1a77e6..df74da6abcf 100644
--- a/usr.bin/tmux/window-tree.c
+++ b/usr.bin/tmux/window-tree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-tree.c,v 1.40 2019/08/16 11:49:12 nicm Exp $ */
+/* $OpenBSD: window-tree.c,v 1.41 2019/09/25 19:05:59 nicm Exp $ */
/*
* Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -269,7 +269,7 @@ window_tree_cmp_pane(const void *a0, const void *b0)
result = (*a)->id - (*b)->id;
}
if (window_tree_sort->reversed)
- result *= -1;
+ result = -result;
return (result);
}