From 253f6a913d232e536e092756732f41b78175d862 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 2 Sep 2022 11:49:06 -0700 Subject: [PATCH] Variable renaming for consistency --- src/joystick/hidapi/SDL_hidapi_wii.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/joystick/hidapi/SDL_hidapi_wii.c b/src/joystick/hidapi/SDL_hidapi_wii.c index 2670c2e82..5604d511b 100644 --- a/src/joystick/hidapi/SDL_hidapi_wii.c +++ b/src/joystick/hidapi/SDL_hidapi_wii.c @@ -1053,10 +1053,10 @@ static void HandleResponse(SDL_DriverWii_Context *ctx, SDL_Joystick *joystick) case k_eWiiCommunicationState_ExtensionIdentify3: if (type == k_eWiiInputReportIDs_ReadMemory) { - EWiiExtensionControllerType exctype = k_eWiiExtensionControllerType_Unknown; - if (ParseExtensionResponse(ctx, &exctype)) { + EWiiExtensionControllerType eExtensionControllerType = k_eWiiExtensionControllerType_Unknown; + if (ParseExtensionResponse(ctx, &eExtensionControllerType)) { ctx->m_eCommState = k_eWiiCommunicationState_None; - if (exctype != ctx->m_eExtensionControllerType) { + if (eExtensionControllerType != ctx->m_eExtensionControllerType) { /* Mark this controller as disconnected so we re-connect with a new identity */ ctx->m_bDisconnected = SDL_TRUE; }