aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-22 07:44:22 -0700
committerChris Robinson <[email protected]>2011-08-22 07:44:22 -0700
commit922f5fa0818a5ab05e148d9d4f245ffb800114fd (patch)
treed72efea3fe408f45ceb7c0f3114d32c4f65ba1c5
parent199df253caad196162b02d61fd7ed06606193890 (diff)
Rename a couple variables
-rw-r--r--OpenAL32/alThunk.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenAL32/alThunk.c b/OpenAL32/alThunk.c
index da5a5285..69e4f834 100644
--- a/OpenAL32/alThunk.c
+++ b/OpenAL32/alThunk.c
@@ -46,19 +46,19 @@ void ThunkExit(void)
DeleteCriticalSection(&g_ThunkLock);
}
-ALenum NewThunkEntry(ALuint *idx)
+ALenum NewThunkEntry(ALuint *index)
{
- ALuint index;
+ ALuint i;
EnterCriticalSection(&g_ThunkLock);
- for(index = 0;index < g_ThunkArraySize;index++)
+ for(i = 0;i < g_ThunkArraySize;i++)
{
- if(g_ThunkArray[index] == AL_FALSE)
+ if(g_ThunkArray[i] == AL_FALSE)
break;
}
- if(index == g_ThunkArraySize)
+ if(i == g_ThunkArraySize)
{
ALboolean *NewList;
@@ -74,8 +74,8 @@ ALenum NewThunkEntry(ALuint *idx)
g_ThunkArray = NewList;
}
- g_ThunkArray[index] = AL_TRUE;
- *idx = index+1;
+ g_ThunkArray[i] = AL_TRUE;
+ *index = i+1;
LeaveCriticalSection(&g_ThunkLock);