Use size_t not u_int for the bytes counters and fix a const missing.

This commit is contained in:
nicm 2020-04-18 14:21:39 +00:00
parent c87595326c
commit 4a93294152
2 changed files with 3 additions and 3 deletions

View File

@ -954,7 +954,7 @@ format_cb_cursor_character(struct format_tree *ft, struct format_entry *fe)
char * char *
format_grid_word(struct grid *gd, u_int x, u_int y) format_grid_word(struct grid *gd, u_int x, u_int y)
{ {
struct grid_line *gl; const struct grid_line *gl;
struct grid_cell gc; struct grid_cell gc;
const char *ws; const char *ws;
struct utf8_data *ud = NULL; struct utf8_data *ud = NULL;

4
tmux.h
View File

@ -934,8 +934,8 @@ struct window_pane {
char *searchstr; char *searchstr;
int searchregex; int searchregex;
u_int written; size_t written;
u_int skipped; size_t skipped;
TAILQ_ENTRY(window_pane) entry; TAILQ_ENTRY(window_pane) entry;
RB_ENTRY(window_pane) tree_entry; RB_ENTRY(window_pane) tree_entry;