From 9e82024def4f84e111b1825a00c94414a42c79ee Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Mon, 29 Apr 2013 23:50:27 +0200 Subject: [PATCH] Corrected confusing indentation in C source file. --- src/joystick/SDL_gamecontroller.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/joystick/SDL_gamecontroller.c b/src/joystick/SDL_gamecontroller.c index 2e856d359..e12c7a705 100644 --- a/src/joystick/SDL_gamecontroller.c +++ b/src/joystick/SDL_gamecontroller.c @@ -302,8 +302,8 @@ ControllerMapping_t *SDL_PrivateGetControllerMappingForGUID(SDL_JoystickGUID *gu } pSupportedController = pSupportedController->next; } - return NULL; - } + return NULL; +} /* * Helper function to determine pre-caclulated offset to certain joystick mappings @@ -349,7 +349,7 @@ SDL_GameControllerAxis SDL_GameControllerGetAxisFromString( const char *pchStrin if ( !SDL_strcasecmp( pchString, map_StringForControllerAxis[entry] ) ) return entry; } - return SDL_CONTROLLER_AXIS_INVALID; + return SDL_CONTROLLER_AXIS_INVALID; } /* @@ -494,7 +494,6 @@ void SDL_PrivateGameControllerParseButton( const char *szGameButton, const char SDL_assert( !"How did we get here?" ); } } - } @@ -1141,7 +1140,7 @@ SDL_GameControllerClose(SDL_GameController * gamecontroller) gamecontrollerlistprev = gamecontrollerlist; gamecontrollerlist = gamecontrollerlist->next; } - + SDL_free(gamecontroller); }