diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-13 02:27:31 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-13 02:27:31 +0000 |
commit | 77ad97f199f1bf05e9a7609bbdd239dab825b258 (patch) | |
tree | cf117ebf8d4a50bc7ba0e4da4d60a98a944756c8 /libbb/lineedit.c | |
parent | c4f12f59cc907577d787f816b37122809f896bb2 (diff) | |
download | busybox-w32-77ad97f199f1bf05e9a7609bbdd239dab825b258.tar.gz busybox-w32-77ad97f199f1bf05e9a7609bbdd239dab825b258.tar.bz2 busybox-w32-77ad97f199f1bf05e9a7609bbdd239dab825b258.zip |
more -Wall warning fixes from Cristian Ionescu-Idbohrn.
This time it resulted in small code changes:
function old new delta
nexpr 820 828 +8
tail_main 1200 1202 +2
wrapf 166 167 +1
parse_mount_options 227 209 -18
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 11/-18) Total: -7 bytes
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index d1a7a4bac..62dcc55cd 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -262,7 +262,7 @@ static void input_backward(unsigned num) | |||
262 | return; | 262 | return; |
263 | cursor -= num; | 263 | cursor -= num; |
264 | 264 | ||
265 | if (cmdedit_x >= num) { | 265 | if ((unsigned)cmdedit_x >= num) { |
266 | cmdedit_x -= num; | 266 | cmdedit_x -= num; |
267 | if (num <= 4) { | 267 | if (num <= 4) { |
268 | /* This is longer by 5 bytes on x86. | 268 | /* This is longer by 5 bytes on x86. |
@@ -321,7 +321,7 @@ static void input_delete(int save) | |||
321 | { | 321 | { |
322 | int j = cursor; | 322 | int j = cursor; |
323 | 323 | ||
324 | if (j == command_len) | 324 | if (j == (int)command_len) |
325 | return; | 325 | return; |
326 | 326 | ||
327 | #if ENABLE_FEATURE_EDITING_VI | 327 | #if ENABLE_FEATURE_EDITING_VI |
@@ -830,7 +830,7 @@ static void input_tab(smallint *lastWasTab) | |||
830 | 830 | ||
831 | if (!*lastWasTab) { | 831 | if (!*lastWasTab) { |
832 | char *tmp, *tmp1; | 832 | char *tmp, *tmp1; |
833 | int len_found; | 833 | size_t len_found; |
834 | /* char matchBuf[MAX_LINELEN]; */ | 834 | /* char matchBuf[MAX_LINELEN]; */ |
835 | #define matchBuf (S.input_tab__matchBuf) | 835 | #define matchBuf (S.input_tab__matchBuf) |
836 | int find_type; | 836 | int find_type; |
@@ -1787,7 +1787,7 @@ int read_line_input(const char *prompt, char *command, int maxsize, line_input_t | |||
1787 | if (vi_cmdmode) /* Don't self-insert */ | 1787 | if (vi_cmdmode) /* Don't self-insert */ |
1788 | break; | 1788 | break; |
1789 | #endif | 1789 | #endif |
1790 | if (command_len >= (maxsize - 2)) /* Need to leave space for enter */ | 1790 | if ((int)command_len >= (maxsize - 2)) /* Need to leave space for enter */ |
1791 | break; | 1791 | break; |
1792 | 1792 | ||
1793 | command_len++; | 1793 | command_len++; |