From f46306945c95adc9a6232ce86f908f2a51a771dd Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 6 May 2005 06:30:51 +0000 Subject: Stage 1 compilation fixes for gcc 4.0 : * more casts signed<->unsigned types * make choose_iso_in_directory()'s return type "void" * change order of .h files in network.c so strndup is included correctly * newt: initialize some variables properly * compile pcmcia and ppp with -Wno-deprecated-declarations, since they use deprecated types such as u_int32_t --- mdk-stage1/newt/newt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mdk-stage1/newt/newt.c') diff --git a/mdk-stage1/newt/newt.c b/mdk-stage1/newt/newt.c index d6cb3cd96..a41b7900b 100644 --- a/mdk-stage1/newt/newt.c +++ b/mdk-stage1/newt/newt.c @@ -397,7 +397,7 @@ int newtOpenWindow(int left, int top, int width, int height, n = 0; for (j = 0; j < height + 3; j++, row++) { SLsmg_gotorc(row, col); - SLsmg_read_raw(currentWindow->buffer + n, + SLsmg_read_raw((SLsmg_Char_Type *)currentWindow->buffer + n, currentWindow->width + 3); n += currentWindow->width + 3; } @@ -462,7 +462,7 @@ void newtPopWindow(void) { col = currentWindow->left - 1; for (j = 0; j < currentWindow->height + 3; j++, row++) { SLsmg_gotorc(row, col); - SLsmg_write_raw(currentWindow->buffer + n, + SLsmg_write_raw((SLsmg_Char_Type *)currentWindow->buffer + n, currentWindow->width + 3); n += currentWindow->width + 3; } -- cgit v1.2.1