Makefile fix and vol_perc fix for mute
authorAaron Marcher <info@nulltime.net>
Mon, 9 Jan 2017 11:05:29 +0000 (12:05 +0100)
committerAaron Marcher <info@nulltime.net>
Mon, 9 Jan 2017 11:05:29 +0000 (12:05 +0100)
Makefile
slstatus.c

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:
index 6d2e89e35ddd010cb5a5c346f6e0557cabdb02f1..89186d6c8a521bd29ed36f5eb0af4e33b8b655a8 100644 (file)
@@ -658,9 +658,7 @@ vol_perc(const char *card)
        }
 
        close(afd);
-       if (v == 0) {
-               return smprintf("mute");
-       }
+
        return smprintf("%d%%", v & 0xff);
 }