tNuke some newlines - spoon - dwm status utility (2f30 fork)
HTML git clone git://src.adamsgaard.dk/spoon
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit dd2c3c02746cff12fbe32de555dcf19aa066c23b
DIR parent f99460db09e1eca862b43edf41905d33546ccf79
HTML Author: sin <sin@2f30.org>
Date: Sun, 15 May 2016 13:41:36 +0100
Nuke some newlines
Diffstat:
M spoon.c | 2 --
1 file changed, 0 insertions(+), 2 deletions(-)
---
DIR diff --git a/spoon.c b/spoon.c
t@@ -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");
t@@ -68,7 +67,6 @@ battread(char *buf, size_t len)
return -1;
}
close(fd);
-
snprintf(buf, len, "%d", info.battery_life);
return 0;
}