Xinqi Bao's Git
projects
/
slstatus.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
a3cb24c
)
Makefile fix and vol_perc fix for mute
author
Aaron Marcher <
[email protected]
>
Mon, 9 Jan 2017 11:05:29 +0000
(12:05 +0100)
committer
Aaron Marcher <
[email protected]
>
Mon, 9 Jan 2017 11:05:29 +0000
(12:05 +0100)
Makefile
diff
|
blob
|
history
slstatus.c
diff
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
43d8cef
..
9e1d0d5
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
6d2e89e
..
89186d6
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);
}