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:
a3cb24c
)
Makefile fix and vol_perc fix for mute
author
Aaron Marcher
<info@nulltime.net>
Mon, 9 Jan 2017 11:05:29 +0000
(12:05 +0100)
committer
Aaron Marcher
<info@nulltime.net>
Mon, 9 Jan 2017 11:05:29 +0000
(12:05 +0100)
Makefile
patch
|
blob
|
history
slstatus.c
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 43d8cef32cc7af152c818322075a516c2024bba8..9e1d0d5b16beee8d230b26557fb7530371e88011 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-4,7
+4,7
@@
include config.mk
all: slstatus
-slstatus: config.h config.mk
+slstatus:
slstatus.c
config.h config.mk
${CC} ${CFLAGS} -o $@ slstatus.c ${LDFLAGS}
config.h:
diff --git
a/slstatus.c
b/slstatus.c
index 6d2e89e35ddd010cb5a5c346f6e0557cabdb02f1..89186d6c8a521bd29ed36f5eb0af4e33b8b655a8 100644
(file)
--- a/
slstatus.c
+++ b/
slstatus.c
@@
-658,9
+658,7
@@
vol_perc(const char *card)
}
close(afd);
- if (v == 0) {
- return smprintf("mute");
- }
+
return smprintf("%d%%", v & 0xff);
}