File alsamixergui-lvalue.diff of Package alsamixergui

--- src/alsamixer.cxx
+++ src/alsamixer.cxx
@@ -653,8 +653,9 @@
     if (vleft >= 0 && vright >= 0) {
       if (joined) {
 #ifdef ALSAMIXER_GUI
-	for (chn = snd_mixer_selem_channel_id_t(0); chn < SND_MIXER_SCHN_LAST; 
-	snd_mixer_selem_channel_id_t(int(chn)++))
+    for (int i =0; snd_mixer_selem_channel_id_t(i) < SND_MIXER_SCHN_LAST; i++)
+      chn = snd_mixer_selem_channel_id_t(i);
+
 #else
 	for (chn = 0; chn < SND_MIXER_SCHN_LAST; chn++)
 #endif