silence picky gcc4 warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8097 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
446dc2aae1
commit
ee76cc3716
3 changed files with 4 additions and 4 deletions
|
@ -120,7 +120,7 @@ struct sim_dirent *sim_readdir(MYDIR *dir)
|
|||
if(!x11)
|
||||
return (struct sim_dirent *)0;
|
||||
|
||||
strcpy(secret.d_name, x11->d_name);
|
||||
strcpy((char *)secret.d_name, x11->d_name);
|
||||
|
||||
/* build file name */
|
||||
sprintf(buffer, SIMULATOR_ARCHOS_ROOT "%s/%s",
|
||||
|
|
|
@ -272,7 +272,7 @@ int screenhack_handle_event(XEvent *event, bool *release)
|
|||
{
|
||||
KeySym keysym;
|
||||
unsigned char c = 0;
|
||||
XLookupString (&event->xkey, &c, 1, &keysym, 0);
|
||||
XLookupString (&event->xkey, (char *)&c, 1, &keysym, 0);
|
||||
key = keysym;
|
||||
#if 0
|
||||
DEBUGF("Got keypress: %c (%02x) %x, tick %ld\n", c, c,
|
||||
|
@ -284,7 +284,7 @@ int screenhack_handle_event(XEvent *event, bool *release)
|
|||
{
|
||||
KeySym keysym;
|
||||
unsigned char c = 0;
|
||||
XLookupString (&event->xkey, &c, 1, &keysym, 0);
|
||||
XLookupString (&event->xkey, (char *)&c, 1, &keysym, 0);
|
||||
key = keysym;
|
||||
#if 0
|
||||
DEBUGF("Got keyrelease: %c (%02x) %x, tick %ld\n", c, c,
|
||||
|
|
|
@ -84,7 +84,7 @@ void sound_playback_thread(void)
|
|||
sound_get_pcm = NULL;
|
||||
break;
|
||||
}
|
||||
sim_sound_play(soundfd, buf, size);
|
||||
sim_sound_play(soundfd, (char *)buf, size);
|
||||
usleep(10000);
|
||||
} while(size);
|
||||
|
||||
|
|
Loading…
Reference in a new issue