diff options
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 62dcc55cd..9c802a35f 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -199,7 +199,7 @@ static void cmdedit_set_out_char(int next_char) | |||
199 | { | 199 | { |
200 | bb_putchar(c); | 200 | bb_putchar(c); |
201 | } | 201 | } |
202 | if (++cmdedit_x >= cmdedit_termw) { | 202 | if (++cmdedit_x >= (int)cmdedit_termw) { |
203 | /* terminal is scrolled down */ | 203 | /* terminal is scrolled down */ |
204 | cmdedit_y++; | 204 | cmdedit_y++; |
205 | cmdedit_x = 0; | 205 | cmdedit_x = 0; |
@@ -861,7 +861,8 @@ static void input_tab(smallint *lastWasTab) | |||
861 | exe_n_cwd_tab_completion(matchBuf, find_type); | 861 | exe_n_cwd_tab_completion(matchBuf, find_type); |
862 | /* Sort, then remove any duplicates found */ | 862 | /* Sort, then remove any duplicates found */ |
863 | if (matches) { | 863 | if (matches) { |
864 | int i, n = 0; | 864 | unsigned i; |
865 | int n = 0; | ||
865 | qsort_string_vector(matches, num_matches); | 866 | qsort_string_vector(matches, num_matches); |
866 | for (i = 0; i < num_matches - 1; ++i) { | 867 | for (i = 0; i < num_matches - 1; ++i) { |
867 | if (matches[i] && matches[i+1]) { /* paranoia */ | 868 | if (matches[i] && matches[i+1]) { /* paranoia */ |