projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e26ab21
)
Fix to build as read-only module (there were unused variables left..)
author
octo
<octo>
Thu, 9 Mar 2006 21:40:17 +0000
(21:40 +0000)
committer
octo
<octo>
Thu, 9 Mar 2006 21:40:17 +0000
(21:40 +0000)
src/battery.c
patch
|
blob
|
history
diff --git
a/src/battery.c
b/src/battery.c
index
d467ecc
..
21b19bb
100644
(file)
--- 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)
{