summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/newt/newt.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-05-06 06:30:51 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-05-06 06:30:51 +0000
commitf46306945c95adc9a6232ce86f908f2a51a771dd (patch)
tree7cfaba83c1935bc6624472e44d94f38ced09039c /mdk-stage1/newt/newt.c
parentab69c718222a8ad2f0fd91d26c6ca8dde5e5e797 (diff)
downloaddrakx-f46306945c95adc9a6232ce86f908f2a51a771dd.tar
drakx-f46306945c95adc9a6232ce86f908f2a51a771dd.tar.gz
drakx-f46306945c95adc9a6232ce86f908f2a51a771dd.tar.bz2
drakx-f46306945c95adc9a6232ce86f908f2a51a771dd.tar.xz
drakx-f46306945c95adc9a6232ce86f908f2a51a771dd.zip
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
Diffstat (limited to 'mdk-stage1/newt/newt.c')
-rw-r--r--mdk-stage1/newt/newt.c4
1 files changed, 2 insertions, 2 deletions
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;
}