PSP: Fix type mismatch warnings.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
diff --git a/src/thread/psp/SDL_syssem.c b/src/thread/psp/SDL_syssem.c
index 640619c..293354e 100644
--- a/src/thread/psp/SDL_syssem.c
+++ b/src/thread/psp/SDL_syssem.c
@@ -101,7 +101,7 @@ int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout)
pTimeout = &timeout;
}
- res = sceKernelWaitSema(sem->semid, 1, pTimeout);
+ res = sceKernelWaitSema(sem->semid, 1, (SceUInt *) pTimeout);
switch (res) {
case SCE_KERNEL_ERROR_OK:
return 0;
diff --git a/src/video/psp/SDL_pspevents.c b/src/video/psp/SDL_pspevents.c
index 33395dc..dd2c67f 100644
--- a/src/video/psp/SDL_pspevents.c
+++ b/src/video/psp/SDL_pspevents.c
@@ -62,16 +62,17 @@ static struct {
{ PSP_HPRM_HOLD, SDLK_F15 }
};
-int EventUpdate(void *data)
+int
+EventUpdate(void *data)
{
while (running) {
- SDL_SemWait(event_sem);
- sceHprmPeekCurrentKey(&hprm);
- SDL_SemPost(event_sem);
- /* Delay 1/60th of a second */
- sceKernelDelayThread(1000000 / 60);
- }
- return 0;
+ SDL_SemWait(event_sem);
+ sceHprmPeekCurrentKey((u32 *) &hprm);
+ SDL_SemPost(event_sem);
+ /* Delay 1/60th of a second */
+ sceKernelDelayThread(1000000 / 60);
+ }
+ return 0;
}
void PSP_PumpEvents(_THIS)
@@ -80,7 +81,6 @@ void PSP_PumpEvents(_THIS)
enum PspHprmKeys keys;
enum PspHprmKeys changed;
static enum PspHprmKeys old_keys = 0;
- SDL_Keysym sym;
SDL_SemWait(event_sem);
keys = hprm;