aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-08-31 09:26:57 -0700
committerChris Robinson <[email protected]>2016-08-31 09:26:57 -0700
commit6fb634c3e12fffca56aed9417a1c8233c67839ed (patch)
tree8a148c2e6fc79edfd1638757b2c0d3042fdb1006
parent7a140b6912123a3ae127f6fadc229b2bb1c24939 (diff)
Remove unnecessary consts
They were causing GCC's built-in atomic cmpxchg to complain.
-rw-r--r--OpenAL32/alAuxEffectSlot.c8
1 files changed, 4 insertions, 4 deletions
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;