volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning.
This commit is contained in:
parent
f7a6d6c8f7
commit
34010907a6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue