diff options
author | 2017-05-13 07:30:50 +0000 | |
---|---|---|
committer | 2017-05-13 07:30:50 +0000 | |
commit | 1350555be8ed18ebf217f9c39e8768ee858f9b77 (patch) | |
tree | 1fc5a7edaff148878c8a0d68b0b41d1ff394f62b | |
parent | - fix bug wrt posix_memalign(3) of blocks between half a page and a page (diff) | |
download | wireguard-openbsd-1350555be8ed18ebf217f9c39e8768ee858f9b77.tar.xz wireguard-openbsd-1350555be8ed18ebf217f9c39e8768ee858f9b77.zip |
Some other unused variables.
-rw-r--r-- | usr.bin/tmux/grid.c | 5 | ||||
-rw-r--r-- | usr.bin/tmux/tty.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/tmux/grid.c b/usr.bin/tmux/grid.c index 08182e2f789..1ef52ff1674 100644 --- a/usr.bin/tmux/grid.c +++ b/usr.bin/tmux/grid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grid.c,v 1.72 2017/05/12 15:18:13 nicm Exp $ */ +/* $OpenBSD: grid.c,v 1.73 2017/05/13 07:30:50 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -286,7 +286,7 @@ grid_clear_history(struct grid *gd) void grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower, u_int bg) { - struct grid_line *gl_history, *gl_upper, *gl_lower; + struct grid_line *gl_history, *gl_upper; u_int yy; /* Create a space for a new line. */ @@ -302,7 +302,6 @@ grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower, u_int bg) upper++; gl_upper = &gd->linedata[upper]; lower++; - gl_lower = &gd->linedata[lower]; /* Move the line into the history. */ memcpy(gl_history, gl_upper, sizeof *gl_history); diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 39fcdf6f257..cf95d5920b4 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.281 2017/05/12 23:10:19 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.282 2017/05/13 07:30:50 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1145,11 +1145,10 @@ void tty_cmd_clearstartofline(struct tty *tty, const struct tty_ctx *ctx) { struct window_pane *wp = ctx->wp; - u_int nx, py = ctx->yoff + ctx->ocy; + u_int py = ctx->yoff + ctx->ocy; tty_default_attributes(tty, wp, ctx->bg); - nx = screen_size_x(wp->screen) - ctx->ocx; tty_clear_line(tty, wp, py, ctx->xoff, ctx->ocx + 1, ctx->bg); } |