summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorparazyd <parazyd@dyne.org>2018-05-02 11:38:27 +0200
committerAaron Marcher <me@drkhsh.at>2018-05-02 11:49:15 +0200
commit34010907a6fdcb2b3fbd09eb06740e5f9f8d1e4f (patch)
tree407d0a52d0d84aded0aed9349a21c11fb896433d /components
parentf7a6d6c8f7d621fe7b5a9c37a130f8bf3b9bd892 (diff)
volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning.
Diffstat (limited to 'components')
-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;