spoon

set dwm status
git clone git://git.2f30.org/spoon
Log | Files | Refs | LICENSE

commit dd2c3c02746cff12fbe32de555dcf19aa066c23b
parent f99460db09e1eca862b43edf41905d33546ccf79
Author: sin <sin@2f30.org>
Date:   Sun, 15 May 2016 13:41:36 +0100

Nuke some newlines

Diffstat:
Mspoon.c | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/spoon.c b/spoon.c @@ -60,7 +60,6 @@ battread(char *buf, size_t len) warn("open %s", "/dev/apm"); return -1; } - ret = ioctl(fd, APM_IOC_GETPOWER, &info); if (ret < 0) { warn("APM_IOC_GETPOWER %s", "/dev/apm"); @@ -68,7 +67,6 @@ battread(char *buf, size_t len) return -1; } close(fd); - snprintf(buf, len, "%d", info.battery_life); return 0; }