summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm>2016-10-12 09:07:58 +0000
committernicm <nicm>2016-10-12 09:07:58 +0000
commit22a8afee9e8dcbe45a371ca72af0169b7c94eac5 (patch)
tree6fb01ef25a99f159f5e417af5a0e018837e15ae9
parent5c49e1d0c1afaf98512b2ffd1f31d91fecff9851 (diff)
Unused variable and missing time.h.
-rw-r--r--paste.c2
-rw-r--r--window-copy.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/paste.c b/paste.c
index 672927f4..d3a90a78 100644
--- a/paste.c
+++ b/paste.c
@@ -17,10 +17,10 @@
*/
#include <sys/types.h>
-#include <sys/time.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include <vis.h>
#include "tmux.h"
diff --git a/window-copy.c b/window-copy.c
index d282e25e..86c90134 100644
--- a/window-copy.c
+++ b/window-copy.c
@@ -1069,11 +1069,10 @@ window_copy_write_line(struct window_pane *wp, struct screen_write_ctx *ctx,
struct options *oo = wp->window->options;
struct grid_cell gc;
char hdr[512];
- size_t last, xoff = 0, size = 0;
+ size_t xoff = 0, size = 0;
style_apply(&gc, oo, "mode-style");
- last = screen_size_y(s) - 1;
if (py == 0) {
size = xsnprintf(hdr, sizeof hdr,
"[%u/%u]", data->oy, screen_hsize(data->backing));