From 26bc6b48313dd0470a3998dace217148fc314271 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 10 Oct 2014 13:44:08 +0200 Subject: Add some missing "const"s The one in msg.c was mistakenly removed with commit e99a37f6. I didn't actually test the change in ao_sndio.c (but obviously "ap" shouldn't be static). --- audio/out/ao_sdl.c | 2 +- audio/out/ao_sndio.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'audio') diff --git a/audio/out/ao_sdl.c b/audio/out/ao_sdl.c index d2362a723e..91554d71fe 100644 --- a/audio/out/ao_sdl.c +++ b/audio/out/ao_sdl.c @@ -38,7 +38,7 @@ struct priv float buflen; }; -static int fmtmap[][2] = { +static const int fmtmap[][2] = { {AF_FORMAT_U8, AUDIO_U8}, {AF_FORMAT_S8, AUDIO_S8}, {AF_FORMAT_U16, AUDIO_U16SYS}, diff --git a/audio/out/ao_sndio.c b/audio/out/ao_sndio.c index 6afe0f9eaf..c528d5729d 100644 --- a/audio/out/ao_sndio.c +++ b/audio/out/ao_sndio.c @@ -111,7 +111,8 @@ static int init(struct ao *ao) struct af_to_par { int format, bits, sig; - } static const af_to_par[] = { + }; + static const struct af_to_par af_to_par[] = { {AF_FORMAT_U8, 8, 0}, {AF_FORMAT_S8, 8, 1}, {AF_FORMAT_U16, 16, 0}, @@ -120,7 +121,8 @@ static int init(struct ao *ao) {AF_FORMAT_S24, 24, 1}, {AF_FORMAT_U32, 32, 0}, {AF_FORMAT_S32, 32, 1}, - }, *ap; + }; + const struct af_to_par *ap; int i; p->hdl = sio_open(p->dev, SIO_PLAY, 1); -- cgit v1.2.3