diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-12-16 18:44:14 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2005-12-16 18:44:14 +0000 |
commit | 9fb30e388fc3f7f7d7c52e187600654da46e8928 (patch) | |
tree | ff2dd451a4a46860cc1e9e9b4efeac7b2ef05788 /alsamixer | |
parent | 6106ed87205edfa7a571ed86a1d836ec4e64df7f (diff) |
Fix compile warnings
Fix trivial compile warnings.
Diffstat (limited to 'alsamixer')
-rw-r--r-- | alsamixer/alsamixer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alsamixer/alsamixer.c b/alsamixer/alsamixer.c index 3f34fdd..e281923 100644 --- a/alsamixer/alsamixer.c +++ b/alsamixer/alsamixer.c @@ -538,13 +538,13 @@ mixer_convert_volume(snd_mixer_elem_t *elem, /* update enum list */ static void update_enum_list(snd_mixer_elem_t *elem, int chn, int delta) { - int eidx; + unsigned int eidx; if (snd_mixer_selem_get_enum_item(elem, chn, &eidx) < 0) return; if (delta < 0) { - eidx--; - if (eidx < 0) + if (eidx == 0) return; + eidx--; } else { int items = snd_mixer_selem_get_enum_items(elem); if (items < 0) @@ -800,7 +800,7 @@ static void display_enum_list(snd_mixer_elem_t *elem, int y, int x) cury = y - 4; for (ch = 0; ch < 2; ch++) { - int eidx, ofs; + unsigned int eidx, ofs; char tmp[9]; err = snd_mixer_selem_get_enum_item(elem, ch, &eidx); if (err < 0) |