projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7a6d6c
)
volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning.
author
parazyd
<parazyd@dyne.org>
Wed, 2 May 2018 09:38:27 +0000
(11:38 +0200)
committer
Aaron Marcher
<me@drkhsh.at>
Wed, 2 May 2018 09:49:15 +0000
(11:49 +0200)
components/volume.c
patch
|
blob
|
history
diff --git
a/components/volume.c
b/components/volume.c
index 7c831c9b02b75732bc1e241b5975b3be4a68c960..41a112d48a8c8593177c46d64c8abc063d962f8e 100644
(file)
--- a/
components/volume.c
+++ b/
components/volume.c
@@
-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;