From 8737d1843c192cd9c227466f8e10f4d64736adf0 Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Tue, 16 Aug 2005 15:30:19 +0000 Subject: [PATCH] simple mixer: fix compilation with gcc 2.x Move a variable declaration to the top of the function for compatibility with gcc 2.x. --- src/mixer/simple_none.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.1