summaryrefslogtreecommitdiff
path: root/components/volume.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/volume.c')
-rw-r--r--components/volume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/volume.c b/components/volume.c
index 7c831c9..41a112d 100644
--- 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;