Remove unnecessary consts

They were causing GCC's built-in atomic cmpxchg to complain.
This commit is contained in:
Chris Robinson 2016-08-31 09:26:57 -07:00
parent 7a140b6912
commit 6fb634c3e1

View File

@ -42,7 +42,7 @@ extern inline void UnlockEffectSlotsWrite(ALCcontext *context);
extern inline struct ALeffectslot *LookupEffectSlot(ALCcontext *context, ALuint id);
extern inline struct ALeffectslot *RemoveEffectSlot(ALCcontext *context, ALuint id);
static void RemoveEffectSlotList(ALCcontext *Context, const ALeffectslot *slot);
static void RemoveEffectSlotList(ALCcontext *Context, ALeffectslot *slot);
static UIntMap EffectStateFactoryMap;
static inline ALeffectStateFactory *getFactoryByType(ALenum type)
@ -430,16 +430,16 @@ done:
}
static void RemoveEffectSlotList(ALCcontext *context, const ALeffectslot *slot)
static void RemoveEffectSlotList(ALCcontext *context, ALeffectslot *slot)
{
ALCdevice *device = context->Device;
const ALeffectslot *root, *next;
ALeffectslot *root, *next;
root = slot;
next = ATOMIC_LOAD(&slot->next);
if(!ATOMIC_COMPARE_EXCHANGE_STRONG(ALeffectslot*, &context->ActiveAuxSlotList, &root, next))
{
const ALeffectslot *cur;
ALeffectslot *cur;
do {
cur = root;
root = slot;