*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Thu, 18 Oct 2001 15:07:09 +0000
changeset 210582abf60e21e
parent 209 c995b877bc5b
child 211 0cc95f442f3a
*** empty log message ***
src/joystick/darwin/SDL_sysjoystick.c
     1.1 --- a/src/joystick/darwin/SDL_sysjoystick.c	Tue Oct 16 15:04:00 2001 +0000
     1.2 +++ b/src/joystick/darwin/SDL_sysjoystick.c	Thu Oct 18 15:07:09 2001 +0000
     1.3 @@ -91,7 +91,7 @@
     1.4  	recElement* firstButton;
     1.5  	recElement* firstHat;
     1.6  
     1.7 -	struct recDevice* pNext;				// next device
     1.8 +	struct joystick_hwdata* pNext;			// next device
     1.9  };
    1.10  typedef struct joystick_hwdata recDevice;
    1.11  
    1.12 @@ -500,14 +500,14 @@
    1.13  			}
    1.14  			else
    1.15  			{
    1.16 -				DisposePtr(pDevice);
    1.17 +				DisposePtr((Ptr)pDevice);
    1.18  				pDevice = NULL;
    1.19  			}
    1.20  			CFRelease (hidProperties);
    1.21  		}
    1.22  		else
    1.23  		{
    1.24 -			DisposePtr(pDevice);
    1.25 +			DisposePtr((Ptr)pDevice);
    1.26  			pDevice = NULL;
    1.27  		}
    1.28  	}
    1.29 @@ -724,7 +724,7 @@
    1.30  	i = 0;
    1.31  	while (element)
    1.32  	{
    1.33 -		Uint8 pos;
    1.34 +		Uint8 pos = 0;
    1.35  
    1.36  		value = HIDGetElementValue(device, element);
    1.37  		switch(value)