sad

simple audio daemon
git clone git://git.2f30.org/sad.git
Log | Files | Refs | LICENSE

commit 35f6493e774ec81f50df2d68cc5f40260d8d71c5
parent 7ff63650ce4a5f23b4be9008f20adf4649c4e6ef
Author: sin <sin@2f30.org>
Date:   Sat Dec 27 11:16:26 +0000

Do not capitalize array, it is not a typedef

Diffstat:
decoder.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/decoder.c b/decoder.c @@ -11,7 +11,7 @@ static struct { char *ext; Decoder *decoder; -} Decodermap[] = { +} decodermap[] = { { ".wav", &wavdecoder }, { ".mp3", &mp3decoder }, { ".ogg", &vorbisdecoder }, @@ -22,8 +22,8 @@ initdecoders(void) { int i, r = 0; - for (i = 0; i < LEN(Decodermap); i++) - if (Decodermap[i].decoder->init() < 0) + for (i = 0; i < LEN(decodermap); i++) + if (decodermap[i].decoder->init() < 0) r = -1; return r; } @@ -37,8 +37,8 @@ matchdecoder(const char *name) ext = strrchr(name, '.'); if (!ext) return NULL; - for (i = 0; i < LEN(Decodermap); i++) - if (!strcasecmp(Decodermap[i].ext, ext)) - return Decodermap[i].decoder; + for (i = 0; i < LEN(decodermap); i++) + if (!strcasecmp(decodermap[i].ext, ext)) + return decodermap[i].decoder; return NULL; }