Makefile fix and vol_perc fix for mute
This commit is contained in:
parent
a3cb24c438
commit
3f976aabc0
2
Makefile
2
Makefile
@ -4,7 +4,7 @@ include config.mk
|
|||||||
|
|
||||||
all: slstatus
|
all: slstatus
|
||||||
|
|
||||||
slstatus: config.h config.mk
|
slstatus: slstatus.c config.h config.mk
|
||||||
${CC} ${CFLAGS} -o $@ slstatus.c ${LDFLAGS}
|
${CC} ${CFLAGS} -o $@ slstatus.c ${LDFLAGS}
|
||||||
|
|
||||||
config.h:
|
config.h:
|
||||||
|
@ -658,9 +658,7 @@ vol_perc(const char *card)
|
|||||||
}
|
}
|
||||||
|
|
||||||
close(afd);
|
close(afd);
|
||||||
if (v == 0) {
|
|
||||||
return smprintf("mute");
|
|
||||||
}
|
|
||||||
return smprintf("%d%%", v & 0xff);
|
return smprintf("%d%%", v & 0xff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user