summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authorAli H. Fardan <raiz@firemail.cc>2016-08-25 23:26:17 +0300
committerAli H. Fardan <raiz@firemail.cc>2016-08-25 23:26:17 +0300
commit447283fda1505124f68f0cf74833f307cb630fa3 (patch)
treebd292d0a27be51b1fe6f6ccab436e631eba9cfa5 /slstatus.c
parentee5337babe5fb756d5877fc820a73f5a34a0d799 (diff)
removing typecasts for pcm_mixer cause more issues than before
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/slstatus.c b/slstatus.c
index 5c7659c..60b5bbb 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -514,8 +514,8 @@ vol_perc(const char *soundcard)
pcm_mixer = snd_mixer_find_selem(handle, vol_info);
mas_mixer = snd_mixer_find_selem(handle, mute_info);
- snd_mixer_selem_get_playback_volume_range(pcm_mixer, &min, &max);
- snd_mixer_selem_get_playback_volume(pcm_mixer, SND_MIXER_SCHN_MONO, &vol);
+ snd_mixer_selem_get_playback_volume_range((snd_mixer_elem_t *)pcm_mixer, &min, &max);
+ snd_mixer_selem_get_playback_volume((snd_mixer_elem_t *)pcm_mixer, SND_MIXER_SCHN_MONO, &vol);
snd_mixer_selem_get_playback_switch(mas_mixer, SND_MIXER_SCHN_MONO, &mute);
if (vol_info)