From 232293792dad120da91f62b92ea270a58e065a91 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 4 Aug 2016 20:42:25 -0700 Subject: Constify some variables --- Alc/ALu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc') diff --git a/Alc/ALu.c b/Alc/ALu.c index 70fe7f49..8b885121 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -1284,7 +1284,7 @@ static void CalcAttnSourceParams(ALvoice *voice, const struct ALsourceProps *pro static void CalcSourceParams(ALvoice *voice, ALCcontext *context) { ALsource *source = voice->Source; - ALbufferlistitem *BufferListItem; + const ALbufferlistitem *BufferListItem; struct ALsourceProps *first; struct ALsourceProps *props; @@ -1294,7 +1294,7 @@ static void CalcSourceParams(ALvoice *voice, ALCcontext *context) BufferListItem = ATOMIC_LOAD(&source->queue, almemory_order_relaxed); while(BufferListItem != NULL) { - ALbuffer *buffer; + const ALbuffer *buffer; if((buffer=BufferListItem->buffer) != NULL) { if(buffer->FmtChannels == FmtMono) -- cgit v1.2.3