summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-11-28 09:36:26 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-11-28 09:36:26 +0000
commitee76cc3716267720025bab498aa9b8a136f89218 (patch)
treea824acdf542afbf1a52cbe6e7a27284da7a08da0
parent446dc2aae1636570c433594d2b48b2e8052e5b90 (diff)
downloadrockbox-ee76cc3716267720025bab498aa9b8a136f89218.tar.gz
rockbox-ee76cc3716267720025bab498aa9b8a136f89218.zip
silence picky gcc4 warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8097 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--uisimulator/common/io.c2
-rw-r--r--uisimulator/x11/screenhack.c4
-rw-r--r--uisimulator/x11/sound.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c
index 1fdc2ef8c8..a5353af5e5 100644
--- a/uisimulator/common/io.c
+++ b/uisimulator/common/io.c
@@ -120,7 +120,7 @@ struct sim_dirent *sim_readdir(MYDIR *dir)
120 if(!x11) 120 if(!x11)
121 return (struct sim_dirent *)0; 121 return (struct sim_dirent *)0;
122 122
123 strcpy(secret.d_name, x11->d_name); 123 strcpy((char *)secret.d_name, x11->d_name);
124 124
125 /* build file name */ 125 /* build file name */
126 sprintf(buffer, SIMULATOR_ARCHOS_ROOT "%s/%s", 126 sprintf(buffer, SIMULATOR_ARCHOS_ROOT "%s/%s",
diff --git a/uisimulator/x11/screenhack.c b/uisimulator/x11/screenhack.c
index 162e0ca82a..4cd2802aa2 100644
--- a/uisimulator/x11/screenhack.c
+++ b/uisimulator/x11/screenhack.c
@@ -272,7 +272,7 @@ int screenhack_handle_event(XEvent *event, bool *release)
272 { 272 {
273 KeySym keysym; 273 KeySym keysym;
274 unsigned char c = 0; 274 unsigned char c = 0;
275 XLookupString (&event->xkey, &c, 1, &keysym, 0); 275 XLookupString (&event->xkey, (char *)&c, 1, &keysym, 0);
276 key = keysym; 276 key = keysym;
277#if 0 277#if 0
278 DEBUGF("Got keypress: %c (%02x) %x, tick %ld\n", c, c, 278 DEBUGF("Got keypress: %c (%02x) %x, tick %ld\n", c, c,
@@ -284,7 +284,7 @@ int screenhack_handle_event(XEvent *event, bool *release)
284 { 284 {
285 KeySym keysym; 285 KeySym keysym;
286 unsigned char c = 0; 286 unsigned char c = 0;
287 XLookupString (&event->xkey, &c, 1, &keysym, 0); 287 XLookupString (&event->xkey, (char *)&c, 1, &keysym, 0);
288 key = keysym; 288 key = keysym;
289#if 0 289#if 0
290 DEBUGF("Got keyrelease: %c (%02x) %x, tick %ld\n", c, c, 290 DEBUGF("Got keyrelease: %c (%02x) %x, tick %ld\n", c, c,
diff --git a/uisimulator/x11/sound.c b/uisimulator/x11/sound.c
index c21615b46d..dd875e41f5 100644
--- a/uisimulator/x11/sound.c
+++ b/uisimulator/x11/sound.c
@@ -84,7 +84,7 @@ void sound_playback_thread(void)
84 sound_get_pcm = NULL; 84 sound_get_pcm = NULL;
85 break; 85 break;
86 } 86 }
87 sim_sound_play(soundfd, buf, size); 87 sim_sound_play(soundfd, (char *)buf, size);
88 usleep(10000); 88 usleep(10000);
89 } while(size); 89 } while(size);
90 90