diff options
Diffstat (limited to 'uisimulator/x11')
-rw-r--r-- | uisimulator/x11/screenhack.c | 4 | ||||
-rw-r--r-- | uisimulator/x11/sound.c | 2 |
2 files changed, 3 insertions, 3 deletions
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 | ||