From 70a4a723c507efc4e1bcfa4d4685da0821bff6dc Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Wed, 15 Jul 2015 11:45:53 +0100 Subject: win32: silence some compiler warnings --- libbb/lineedit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbb') 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) npth = 1; /* path component count */ while (1) { #if ENABLE_PLATFORM_MINGW32 - tmp = next_path_sep(tmp); + tmp = (char *)next_path_sep(tmp); #else tmp = strchr(tmp, ':'); #endif @@ -777,7 +777,7 @@ static int path_parse(char ***p) npth = 1; while (1) { #if ENABLE_PLATFORM_MINGW32 - tmp = next_path_sep(tmp); + tmp = (char *)next_path_sep(tmp); #else tmp = strchr(tmp, ':'); #endif @@ -2329,7 +2329,7 @@ int FAST_FUNC read_line_input(line_input_t *st, const char *prompt, char *comman INIT_S(); #if ENABLE_PLATFORM_MINGW32 - memset(initial_settings.c_cc, sizeof(initial_settings.c_cc), 0); + memset(initial_settings.c_cc, 0, sizeof(initial_settings.c_cc)); initial_settings.c_cc[VINTR] = CTRL('C'); initial_settings.c_cc[VEOF] = CTRL('D'); if (!isatty(0) || !isatty(1)) { -- cgit v1.2.3-55-g6feb