volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning.
This commit is contained in:
parent
f7a6d6c8f7
commit
34010907a6
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ vol_perc(const char *card)
|
||||||
return NULL;
|
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));
|
fprintf(stderr, "ioctl 'SOUND_MIXER_READ_DEVMASK': %s\n", strerror(errno));
|
||||||
close(afd);
|
close(afd);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue