From e4a39525a1c2254a65b238f4ce14deaf7d3f932b Mon Sep 17 00:00:00 2001 From: octo Date: Thu, 9 Mar 2006 21:40:17 +0000 Subject: [PATCH] Fix to build as read-only module (there were unused variables left..) --- src/battery.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/battery.c b/src/battery.c index d467ecc8..21b19bb7 100644 --- a/src/battery.c +++ b/src/battery.c @@ -60,8 +60,10 @@ static char *ds_def_charge[] = }; static int ds_num_charge = 1; +#if BATTERY_HAVE_READ static int battery_pmu_num = 0; static char *battery_pmu_file = "/proc/pmu/battery_%i"; +#endif static void battery_init (void) { -- 2.30.2