From: Clemens Ladisch Date: Tue, 16 Aug 2005 15:30:19 +0000 (+0000) Subject: simple mixer: fix compilation with gcc 2.x X-Git-Tag: v1.0.10rc1~6 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=8737d1843c192cd9c227466f8e10f4d64736adf0;p=alsa-lib.git simple mixer: fix compilation with gcc 2.x Move a variable declaration to the top of the function for compatibility with gcc 2.x. --- diff --git a/src/mixer/simple_none.c b/src/mixer/simple_none.c index 6fd32b21..88724b29 100644 --- a/src/mixer/simple_none.c +++ b/src/mixer/simple_none.c @@ -597,8 +597,8 @@ static int selem_write(snd_mixer_elem_t *elem) static void selem_free(snd_mixer_elem_t *elem) { - assert(snd_mixer_elem_get_type(elem) == SND_MIXER_ELEM_SIMPLE); selem_none_t *simple = snd_mixer_elem_get_private(elem); + assert(snd_mixer_elem_get_type(elem) == SND_MIXER_ELEM_SIMPLE); if (simple->selem.id) snd_mixer_selem_id_free(simple->selem.id); free(simple);