volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning.
parazyd parazyd@dyne.org
Wed, 02 May 2018 11:38:27 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
components/volume.c
→
components/volume.c
@@ -26,7 +26,7 @@ fprintf(stderr, "open '%s': %s\n", card, strerror(errno));
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;