summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/grid.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2023-06-30 21:55:10 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2023-06-30 21:55:10 +0000
commit72793c499ea3de5123397d96a26aa95885f22b5e (patch)
treefed56dadff6d71f02e2dde2812700debc93c086e /usr.bin/tmux/grid.c
parentf4b7795131919f0c37e62da2897c968606d24f58 (diff)
Change a few types to fix warnings, from Thomas Klausner.
Diffstat (limited to 'usr.bin/tmux/grid.c')
-rw-r--r--usr.bin/tmux/grid.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/grid.c b/usr.bin/tmux/grid.c
index 09816b5a6af..17c9e7528a8 100644
--- a/usr.bin/tmux/grid.c
+++ b/usr.bin/tmux/grid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grid.c,v 1.128 2023/05/08 10:03:39 tb Exp $ */
+/* $OpenBSD: grid.c,v 1.129 2023/06/30 21:55:08 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1044,7 +1044,8 @@ grid_string_cells(struct grid *gd, u_int px, u_int py, u_int nx,
const char *data;
char *buf, code[8192];
size_t len, off, size, codelen;
- u_int xx, has_link = 0, end;
+ u_int xx, end;
+ int has_link = 0;
const struct grid_line *gl;
if (lastgc != NULL && *lastgc == NULL) {