From 6fb634c3e12fffca56aed9417a1c8233c67839ed Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 31 Aug 2016 09:26:57 -0700 Subject: Remove unnecessary consts They were causing GCC's built-in atomic cmpxchg to complain. --- OpenAL32/alAuxEffectSlot.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenAL32/alAuxEffectSlot.c') diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index 479646b1..b860b2b0 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -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; -- cgit v1.2.3