From 5599502a550a7f892d4b73dceb2105a6916f83e6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 18 May 2008 22:28:26 +0000 Subject: more -Wall warning fixes. -Wall is enabled now. --- editors/vi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editors/vi.c') diff --git a/editors/vi.c b/editors/vi.c index 5013d0d51..dded6edb3 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -136,7 +136,7 @@ static smallint last_file_modified = -1; static int fn_start; // index of first cmd line file name static int save_argc; // how many file names on cmd line static int cmdcnt; // repetition count -static int rows, columns; // the terminal screen is this size +static unsigned rows, columns; // the terminal screen is this size static int crow, ccol; // cursor is on Crow x Ccol static int offset; // chars scrolled off the screen to the left static char *status_buffer; // mesages to the user @@ -2837,7 +2837,7 @@ static void refresh(int full_screen) char *tp, *sp; // pointer into text[] and screen[] if (ENABLE_FEATURE_VI_WIN_RESIZE) { - int c = columns, r = rows; + unsigned c = columns, r = rows; get_terminal_width_height(0, &columns, &rows); if (rows > MAX_SCR_ROWS) rows = MAX_SCR_ROWS; if (columns > MAX_SCR_COLS) columns = MAX_SCR_COLS; -- cgit v1.2.3