From 01b66bb4e6f3f0fbedaef31ad757e4124ed1dd97 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 18 Oct 2001 15:07:09 +0000 Subject: [PATCH] *** empty log message *** --- src/joystick/darwin/SDL_sysjoystick.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/joystick/darwin/SDL_sysjoystick.c b/src/joystick/darwin/SDL_sysjoystick.c index 5af5bb628..aedcb3446 100644 --- a/src/joystick/darwin/SDL_sysjoystick.c +++ b/src/joystick/darwin/SDL_sysjoystick.c @@ -91,7 +91,7 @@ struct joystick_hwdata recElement* firstButton; recElement* firstHat; - struct recDevice* pNext; // next device + struct joystick_hwdata* pNext; // next device }; typedef struct joystick_hwdata recDevice; @@ -500,14 +500,14 @@ static recDevice *HIDBuildDevice (io_object_t hidDevice) } else { - DisposePtr(pDevice); + DisposePtr((Ptr)pDevice); pDevice = NULL; } CFRelease (hidProperties); } else { - DisposePtr(pDevice); + DisposePtr((Ptr)pDevice); pDevice = NULL; } } @@ -724,7 +724,7 @@ void SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) i = 0; while (element) { - Uint8 pos; + Uint8 pos = 0; value = HIDGetElementValue(device, element); switch(value)