From dc882adb2e439e1721458adc58c9bb09f80fbe77 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 11 Feb 2020 07:01:08 +0000 Subject: [PATCH] Remove unused variables from Ben Boeckel, and a Pp from jmc. --- server-client.c | 2 -- tmux.1 | 1 - window-buffer.c | 4 ++-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/server-client.c b/server-client.c index 12e07327..864c2e6a 100644 --- a/server-client.c +++ b/server-client.c @@ -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/tmux.1 b/tmux.1 index f3abcb88..6f581da4 100644 --- a/tmux.1 +++ b/tmux.1 @@ -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/window-buffer.c b/window-buffer.c index e03dfa28..bbc5c744 100644 --- a/window-buffer.c +++ b/window-buffer.c @@ -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",