[hackers] [slstatus] volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning. || parazyd
commit 34010907a6fdcb2b3fbd09eb06740e5f9f8d1e4f
Author: parazyd <parazyd_AT_dyne.org>
AuthorDate: Wed May 2 11:38:27 2018 +0200
Commit: Aaron Marcher <me_AT_drkhsh.at>
CommitDate: Wed May 2 11:49:15 2018 +0200
volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning.
diff --git a/components/volume.c b/components/volume.c
index 7c831c9..41a112d 100644
--- a/components/volume.c
+++ b/components/volume.c
_AT_@ -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;
Received on Wed May 02 2018 - 11:49:31 CEST
This archive was generated by hypermail 2.3.0
: Wed May 02 2018 - 12:00:38 CEST