Clean up a couple variable names and declarations

This commit is contained in:
Chris Robinson
2016-05-30 02:10:06 -07:00
parent 70a105c22c
commit 612b24fa91
2 changed files with 6 additions and 7 deletions
+4 -4
View File
@@ -782,13 +782,13 @@ static ATOMIC(ALCdevice*) DeviceList = ATOMIC_INIT_STATIC(NULL);
static almtx_t ListLock;
static inline void LockLists(void)
{
int lockret = almtx_lock(&ListLock);
assert(lockret == althrd_success);
int ret = almtx_lock(&ListLock);
assert(ret == althrd_success);
}
static inline void UnlockLists(void)
{
int unlockret = almtx_unlock(&ListLock);
assert(unlockret == althrd_success);
int ret = almtx_unlock(&ListLock);
assert(ret == althrd_success);
}
/************************************************
+2 -3
View File
@@ -13,10 +13,9 @@ extern inline ALuint64 GetDeviceClockTime(ALCdevice *device);
/* Base ALCbackend method implementations. */
void ALCbackend_Construct(ALCbackend *self, ALCdevice *device)
{
int ret;
self->mDevice = device;
ret = almtx_init(&self->mMutex, almtx_recursive);
int ret = almtx_init(&self->mMutex, almtx_recursive);
assert(ret == althrd_success);
self->mDevice = device;
}
void ALCbackend_Destruct(ALCbackend *self)