# HG changeset patch # User Sam Lantinga # Date 1003417629 0 # Node ID 582abf60e21ef15efe2fd84e2bf4d7f5f2b99c16 # Parent c995b877bc5bdf8fa4130f37ffbb2e9fc9f8e249 *** empty log message *** diff -r c995b877bc5b -r 582abf60e21e src/joystick/darwin/SDL_sysjoystick.c --- a/src/joystick/darwin/SDL_sysjoystick.c Tue Oct 16 15:04:00 2001 +0000 +++ b/src/joystick/darwin/SDL_sysjoystick.c Thu Oct 18 15:07:09 2001 +0000 @@ -91,7 +91,7 @@ recElement* firstButton; recElement* firstHat; - struct recDevice* pNext; // next device + struct joystick_hwdata* pNext; // next device }; typedef struct joystick_hwdata recDevice; @@ -500,14 +500,14 @@ } else { - DisposePtr(pDevice); + DisposePtr((Ptr)pDevice); pDevice = NULL; } CFRelease (hidProperties); } else { - DisposePtr(pDevice); + DisposePtr((Ptr)pDevice); pDevice = NULL; } } @@ -724,7 +724,7 @@ i = 0; while (element) { - Uint8 pos; + Uint8 pos = 0; value = HIDGetElementValue(device, element); switch(value)