diff options
author | Aaron Marcher <info@nulltime.net> | 2017-01-09 12:05:29 +0100 |
---|---|---|
committer | Aaron Marcher <info@nulltime.net> | 2017-01-09 12:05:29 +0100 |
commit | fe41fcdcaf7236c6b15f8aa6538e5f14c3b4f3e0 (patch) | |
tree | 1dfef74232f01691d28aa038b6821483b076ab28 | |
parent | df5c46de95e95dc885aae283f6d6daa6d626acec (diff) |
Makefile fix and vol_perc fix for mute
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | slstatus.c | 4 |
2 files changed, 2 insertions, 4 deletions
@@ -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: @@ -658,9 +658,7 @@ vol_perc(const char *card) } close(afd); - if (v == 0) { - return smprintf("mute"); - } + return smprintf("%d%%", v & 0xff); } |