From: octo Date: Thu, 9 Mar 2006 21:40:17 +0000 (+0000) Subject: Fix to build as read-only module (there were unused variables left..) X-Git-Tag: collectd-3.8.6^2~128 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e4a39525a1c2254a65b238f4ce14deaf7d3f932b;p=collectd.git Fix to build as read-only module (there were unused variables left..) --- 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) {