diff options
author | Ron Yorston <rmy@pobox.com> | 2015-07-15 11:45:53 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2015-07-15 11:53:50 +0100 |
commit | 70a4a723c507efc4e1bcfa4d4685da0821bff6dc (patch) | |
tree | a0ec583f0be1ed6f3fa46906d7b8d7ba2c8cadb2 /libbb | |
parent | a08314a5ac85a613ef1c8b1d14badae7e7324409 (diff) | |
download | busybox-w32-70a4a723c507efc4e1bcfa4d4685da0821bff6dc.tar.gz busybox-w32-70a4a723c507efc4e1bcfa4d4685da0821bff6dc.tar.bz2 busybox-w32-70a4a723c507efc4e1bcfa4d4685da0821bff6dc.zip |
win32: silence some compiler warnings
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/lineedit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 86ded6bc5..5cb40a508 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -760,7 +760,7 @@ static int path_parse(char ***p) | |||
760 | npth = 1; /* path component count */ | 760 | npth = 1; /* path component count */ |
761 | while (1) { | 761 | while (1) { |
762 | #if ENABLE_PLATFORM_MINGW32 | 762 | #if ENABLE_PLATFORM_MINGW32 |
763 | tmp = next_path_sep(tmp); | 763 | tmp = (char *)next_path_sep(tmp); |
764 | #else | 764 | #else |
765 | tmp = strchr(tmp, ':'); | 765 | tmp = strchr(tmp, ':'); |
766 | #endif | 766 | #endif |
@@ -777,7 +777,7 @@ static int path_parse(char ***p) | |||
777 | npth = 1; | 777 | npth = 1; |
778 | while (1) { | 778 | while (1) { |
779 | #if ENABLE_PLATFORM_MINGW32 | 779 | #if ENABLE_PLATFORM_MINGW32 |
780 | tmp = next_path_sep(tmp); | 780 | tmp = (char *)next_path_sep(tmp); |
781 | #else | 781 | #else |
782 | tmp = strchr(tmp, ':'); | 782 | tmp = strchr(tmp, ':'); |
783 | #endif | 783 | #endif |
@@ -2329,7 +2329,7 @@ int FAST_FUNC read_line_input(line_input_t *st, const char *prompt, char *comman | |||
2329 | INIT_S(); | 2329 | INIT_S(); |
2330 | 2330 | ||
2331 | #if ENABLE_PLATFORM_MINGW32 | 2331 | #if ENABLE_PLATFORM_MINGW32 |
2332 | memset(initial_settings.c_cc, sizeof(initial_settings.c_cc), 0); | 2332 | memset(initial_settings.c_cc, 0, sizeof(initial_settings.c_cc)); |
2333 | initial_settings.c_cc[VINTR] = CTRL('C'); | 2333 | initial_settings.c_cc[VINTR] = CTRL('C'); |
2334 | initial_settings.c_cc[VEOF] = CTRL('D'); | 2334 | initial_settings.c_cc[VEOF] = CTRL('D'); |
2335 | if (!isatty(0) || !isatty(1)) { | 2335 | if (!isatty(0) || !isatty(1)) { |