Browse Source

volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning.

master
parazyd 6 years ago
committed by Aaron Marcher
parent
commit
34010907a6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      components/volume.c

+ 1
- 1
components/volume.c 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;


Loading…
Cancel
Save