volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning.

This commit is contained in:
parazyd 2018-05-02 11:38:27 +02:00 committed by Aaron Marcher
parent f7a6d6c8f7
commit 34010907a6
1 changed files with 1 additions and 1 deletions

View File

@ -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;