slstatus

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.beauhilton.com/slstatus.git
Log | Files | Refs | README | LICENSE

commit 34010907a6fdcb2b3fbd09eb06740e5f9f8d1e4f
parent f7a6d6c8f7d621fe7b5a9c37a130f8bf3b9bd892
Author: parazyd <parazyd@dyne.org>
Date:   Wed,  2 May 2018 11:38:27 +0200

volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning.

Diffstat:
Mcomponents/volume.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/volume.c b/components/volume.c @@ -26,7 +26,7 @@ vol_perc(const char *card) return NULL; } - if (ioctl(afd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1) { + if (ioctl(afd, (int)SOUND_MIXER_READ_DEVMASK, &devmask) == -1) { fprintf(stderr, "ioctl 'SOUND_MIXER_READ_DEVMASK': %s\n", strerror(errno)); close(afd); return NULL;