summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-02-11 07:01:08 +0000
committernicm <nicm@openbsd.org>2020-02-11 07:01:08 +0000
commitf8ef6c4b53c9ca575db91880a0ca71bd5057fe64 (patch)
tree2f435630f40267912e363eb4dc33810079ef3f7b
parentFinally delete support for the "_whatdb" configuration directive, (diff)
downloadwireguard-openbsd-f8ef6c4b53c9ca575db91880a0ca71bd5057fe64.tar.xz
wireguard-openbsd-f8ef6c4b53c9ca575db91880a0ca71bd5057fe64.zip
Remove unused variables from Ben Boeckel, and a Pp from jmc.
-rw-r--r--usr.bin/tmux/server-client.c4
-rw-r--r--usr.bin/tmux/tmux.15
-rw-r--r--usr.bin/tmux/window-buffer.c6
3 files changed, 6 insertions, 9 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 80a4455413e..46e6cc95cdf 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.303 2020/01/28 08:06:11 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.304 2020/02/11 07:01:08 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1706,7 +1706,6 @@ static void
server_client_dispatch(struct imsg *imsg, void *arg)
{
struct client *c = arg;
- const char *data;
ssize_t datalen;
struct session *s;
@@ -1718,7 +1717,6 @@ server_client_dispatch(struct imsg *imsg, void *arg)
return;
}
- data = imsg->data;
datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
switch (imsg->hdr.type) {
diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1
index 9c888720b2e..6cce11da4b9 100644
--- a/usr.bin/tmux/tmux.1
+++ b/usr.bin/tmux/tmux.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tmux.1,v 1.710 2020/02/05 13:06:49 nicm Exp $
+.\" $OpenBSD: tmux.1,v 1.711 2020/02/11 07:01:08 nicm Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
.\"
@@ -14,7 +14,7 @@
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: February 5 2020 $
+.Dd $Mdocdate: February 11 2020 $
.Dt TMUX 1
.Os
.Sh NAME
@@ -2718,7 +2718,6 @@ also lists only keys in
specifies a prefix to print before each key and
.Fl 1
lists only the first matching key.
-.Pp
.It Xo Ic send-keys
.Op Fl FHlMRX
.Op Fl N Ar repeat-count
diff --git a/usr.bin/tmux/window-buffer.c b/usr.bin/tmux/window-buffer.c
index f5a599cda07..fabfb1981f3 100644
--- a/usr.bin/tmux/window-buffer.c
+++ b/usr.bin/tmux/window-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-buffer.c,v 1.24 2019/12/13 09:15:13 nicm Exp $ */
+/* $OpenBSD: window-buffer.c,v 1.25 2020/02/11 07:01:09 nicm Exp $ */
/*
* Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -210,7 +210,7 @@ window_buffer_draw(__unused void *modedata, void *itemdata,
struct paste_buffer *pb;
const char *pdata, *start, *end;
char *buf = NULL;
- size_t psize, len;
+ size_t psize;
u_int i, cx = ctx->s->cx, cy = ctx->s->cy;
pb = paste_get_name(item->name);
@@ -223,7 +223,7 @@ window_buffer_draw(__unused void *modedata, void *itemdata,
while (end != pdata + psize && *end != '\n')
end++;
buf = xreallocarray(buf, 4, end - start + 1);
- len = utf8_strvis(buf, start, end - start, VIS_OCTAL|VIS_TAB);
+ utf8_strvis(buf, start, end - start, VIS_OCTAL|VIS_TAB);
if (*buf != '\0') {
screen_write_cursormove(ctx, cx, cy + i, 0);
screen_write_nputs(ctx, sx, &grid_default_cell, "%s",