From: Jan Djärv Date: Mon, 10 Mar 2008 08:10:51 +0000 (+0000) Subject: (alsa_configure): Declare vol at beginning of block. X-Git-Tag: emacs-pretest-23.0.90~7302 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=646d0d127fc141cdf6d317d3bf05286fa296b656;p=emacs.git (alsa_configure): Declare vol at beginning of block. --- diff --git a/src/sound.c b/src/sound.c index 0b153991c18..8aaef9d746a 100644 --- a/src/sound.c +++ b/src/sound.c @@ -1105,9 +1105,9 @@ alsa_configure (sd) { if (snd_mixer_selem_has_playback_volume (e)) { - long pmin, pmax; + long pmin, pmax, vol; snd_mixer_selem_get_playback_volume_range (e, &pmin, &pmax); - long vol = pmin + (sd->volume * (pmax - pmin)) / 100; + vol = pmin + (sd->volume * (pmax - pmin)) / 100; for (chn = 0; chn <= SND_MIXER_SCHN_LAST; chn++) snd_mixer_selem_set_playback_volume (e, chn, vol);