xbattmon

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

commit 7714223ae7452e386f82af0312c6ba415ea73a40
parent 6f179f043c9da92cfd6c75c949b98a1c6e96acd5
Author: sin <sin@2f30.org>
Date:   Sat Jul  8 09:40:48 +0100

Rename PATH_BAT_CAP to PAT_BAT0_CAP

Diffstat:
config.linux.mk | 2+-
xbattmon.c | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/config.linux.mk b/config.linux.mk @@ -1,6 +1,6 @@ PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man -CPPFLAGS = -DVERSION=\"${VERSION}\" -DPATH_BAT_CAP=\"/sys/class/power_supply/BAT0/capacity\" \ +CPPFLAGS = -DVERSION=\"${VERSION}\" -DPATH_BAT0_CAP=\"/sys/class/power_supply/BAT0/capacity\" \ -DPATH_AC_ONLINE=\"/sys/class/power_supply/AC/online\" LDLIBS = -lX11 diff --git a/xbattmon.c b/xbattmon.c @@ -271,9 +271,9 @@ pollbat(void) FILE *fp; int acon; - fp = fopen(PATH_BAT_CAP, "r"); + fp = fopen(PATH_BAT0_CAP, "r"); if (!fp) - err(1, "fopen %s", PATH_BAT_CAP); + err(1, "fopen %s", PATH_BAT0_CAP); fscanf(fp, "%d", &batcap); fclose(fp);