projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common.c: fields_num is unsigned
[collectd.git]
/
src
/
battery.c
diff --git
a/src/battery.c
b/src/battery.c
index
c4c050d
..
0350a9e
100644
(file)
--- a/
src/battery.c
+++ b/
src/battery.c
@@
-143,7
+143,7
@@
static void submit_capacity (char const *plugin_instance, /* {{{ */
} /* }}} void submit_capacity */
#if HAVE_IOKIT_PS_IOPOWERSOURCES_H || HAVE_IOKIT_IOKITLIB_H
} /* }}} void submit_capacity */
#if HAVE_IOKIT_PS_IOPOWERSOURCES_H || HAVE_IOKIT_IOKITLIB_H
-static double dict_get_double (CFDictionaryRef dict, char *key_string) /* {{{ */
+static double dict_get_double (CFDictionaryRef dict, c
onst c
har *key_string) /* {{{ */
{
double val_double;
long long val_int;
{
double val_double;
long long val_int;
@@
-341,7
+341,7
@@
static void get_via_generic_iokit (double *ret_capacity_full, /* {{{ */
*ret_voltage = temp_double / 1000.0;
}
}
*ret_voltage = temp_double / 1000.0;
}
}
-
+
CFRelease (bat_root_dict);
}
CFRelease (bat_root_dict);
}