projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treewide: use bool instead of _Bool
[collectd.git]
/
src
/
battery.c
diff --git
a/src/battery.c
b/src/battery.c
index
b6dea0f
..
74e2796
100644
(file)
--- a/
src/battery.c
+++ b/
src/battery.c
@@
-72,9
+72,9
@@
int battery_read_statefs(
void); /* defined in battery_statefs; used by StateFS backend */
int battery_read_statefs(
void); /* defined in battery_statefs; used by StateFS backend */
-static
_B
ool report_percent = 0;
-static
_B
ool report_degraded = 0;
-static
_B
ool query_statefs = 0;
+static
b
ool report_percent = 0;
+static
b
ool report_degraded = 0;
+static
b
ool query_statefs = 0;
static void battery_submit2(char const *plugin_instance, /* {{{ */
char const *type, char const *type_instance,
static void battery_submit2(char const *plugin_instance, /* {{{ */
char const *type, char const *type_instance,
@@
-410,7
+410,7
@@
static int read_sysfs_callback(char const *dir, /* {{{ */
char const *plugin_instance;
char buffer[32];
gauge_t v = NAN;
char const *plugin_instance;
char buffer[32];
gauge_t v = NAN;
-
_B
ool discharging = 0;
+
b
ool discharging = 0;
int status;
/* Ignore non-battery directories, such as AC power. */
int status;
/* Ignore non-battery directories, such as AC power. */
@@
-522,8
+522,8
@@
static int read_acpi_callback(char const *dir, /* {{{ */
gauge_t capacity_charged = NAN;
gauge_t capacity_full = NAN;
gauge_t capacity_design = NAN;
gauge_t capacity_charged = NAN;
gauge_t capacity_full = NAN;
gauge_t capacity_design = NAN;
-
_B
ool charging = 0;
-
_B
ool is_current = 0;
+
b
ool charging = 0;
+
b
ool is_current = 0;
char const *plugin_instance;
char filename[PATH_MAX];
char const *plugin_instance;
char filename[PATH_MAX];