Fix to build as read-only module (there were unused variables left..)
authorocto <octo>
Thu, 9 Mar 2006 21:40:17 +0000 (21:40 +0000)
committerocto <octo>
Thu, 9 Mar 2006 21:40:17 +0000 (21:40 +0000)
src/battery.c

index d467ecc..21b19bb 100644 (file)
@@ -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)
 {