From 922f5fa0818a5ab05e148d9d4f245ffb800114fd Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 22 Aug 2011 07:44:22 -0700 Subject: Rename a couple variables --- OpenAL32/alThunk.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'OpenAL32') 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); -- cgit v1.2.3