Makefile fix and vol_perc fix for mute

master
Aaron Marcher 9 years ago
parent a3cb24c438
commit 3f976aabc0
No known key found for this signature in database
GPG Key ID: 74B048E5C2474F9A

@ -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);
}

Loading…
Cancel
Save