aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-05-18 22:28:26 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-05-18 22:28:26 +0000
commit5599502a550a7f892d4b73dceb2105a6916f83e6 (patch)
tree572ffa27892b1b24db86930044077dbb1565840f /editors
parente125a683a77d14401644d15f38b7f578db723924 (diff)
downloadbusybox-w32-5599502a550a7f892d4b73dceb2105a6916f83e6.tar.gz
busybox-w32-5599502a550a7f892d4b73dceb2105a6916f83e6.tar.bz2
busybox-w32-5599502a550a7f892d4b73dceb2105a6916f83e6.zip
more -Wall warning fixes. -Wall is enabled now.
Diffstat (limited to 'editors')
-rw-r--r--editors/vi.c4
1 files changed, 2 insertions, 2 deletions
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;
136static int fn_start; // index of first cmd line file name 136static int fn_start; // index of first cmd line file name
137static int save_argc; // how many file names on cmd line 137static int save_argc; // how many file names on cmd line
138static int cmdcnt; // repetition count 138static int cmdcnt; // repetition count
139static int rows, columns; // the terminal screen is this size 139static unsigned rows, columns; // the terminal screen is this size
140static int crow, ccol; // cursor is on Crow x Ccol 140static int crow, ccol; // cursor is on Crow x Ccol
141static int offset; // chars scrolled off the screen to the left 141static int offset; // chars scrolled off the screen to the left
142static char *status_buffer; // mesages to the user 142static char *status_buffer; // mesages to the user
@@ -2837,7 +2837,7 @@ static void refresh(int full_screen)
2837 char *tp, *sp; // pointer into text[] and screen[] 2837 char *tp, *sp; // pointer into text[] and screen[]
2838 2838
2839 if (ENABLE_FEATURE_VI_WIN_RESIZE) { 2839 if (ENABLE_FEATURE_VI_WIN_RESIZE) {
2840 int c = columns, r = rows; 2840 unsigned c = columns, r = rows;
2841 get_terminal_width_height(0, &columns, &rows); 2841 get_terminal_width_height(0, &columns, &rows);
2842 if (rows > MAX_SCR_ROWS) rows = MAX_SCR_ROWS; 2842 if (rows > MAX_SCR_ROWS) rows = MAX_SCR_ROWS;
2843 if (columns > MAX_SCR_COLS) columns = MAX_SCR_COLS; 2843 if (columns > MAX_SCR_COLS) columns = MAX_SCR_COLS;