xbattmon

simple battery monitor for X
git clone git://git.2f30.org/xbattmon.git
Log | Files | Refs | README | LICENSE

commit 0b1d0982cf468924d84db4fef35d15d51c0024b1
parent 0755f7ab1acfea4c0695d003752af7d2b29f44e9
Author: sin <sin@2f30.org>
Date:   Fri, 14 Nov 2014 13:47:50 +0000

Fix style

Diffstat:
xbattmon.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xbattmon.c b/xbattmon.c @@ -174,7 +174,7 @@ pollbat(void) if (fd < 0) err(1, "open %s", PATH_APM); r = ioctl(fd, APM_IOC_GETPOWER, &info); - if (r != 0) + if (r < 0) err(1, "APM_IOC_GETPOWER %s", PATH_APM); close(fd);