changeset 210:582abf60e21e

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Thu, 18 Oct 2001 15:07:09 +0000
parents c995b877bc5b
children 0cc95f442f3a
files src/joystick/darwin/SDL_sysjoystick.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)