projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set static bools to true instead of 1
[collectd.git]
/
src
/
rrdcached.c
diff --git
a/src/rrdcached.c
b/src/rrdcached.c
index
529d29c
..
3d7ae05
100644
(file)
--- a/
src/rrdcached.c
+++ b/
src/rrdcached.c
@@
-39,8
+39,8
@@
*/
static char *datadir = NULL;
static char *daemon_address = NULL;
*/
static char *datadir = NULL;
static char *daemon_address = NULL;
-static
_Bool config_create_files = 1
;
-static
_Bool config_collect_stats = 1
;
+static
bool config_create_files = true
;
+static
bool config_collect_stats = true
;
static rrdcreate_config_t rrdcreate_config = {
/* stepsize = */ 0,
/* heartbeat = */ 0,
static rrdcreate_config_t rrdcreate_config = {
/* stepsize = */ 0,
/* heartbeat = */ 0,
@@
-284,7
+284,7
@@
static int try_reconnect(void) {
static int rc_read(void) {
int status;
rrdc_stats_t *head;
static int rc_read(void) {
int status;
rrdc_stats_t *head;
-
_B
ool retried = 0;
+
b
ool retried = 0;
value_list_t vl = VALUE_LIST_INIT;
vl.values = &(value_t){.gauge = NAN};
value_list_t vl = VALUE_LIST_INIT;
vl.values = &(value_t){.gauge = NAN};
@@
-392,7
+392,7
@@
static int rc_write(const data_set_t *ds, const value_list_t *vl,
char values[512];
char *values_array[2];
int status;
char values[512];
char *values_array[2];
int status;
-
_B
ool retried = 0;
+
b
ool retried = 0;
if (daemon_address == NULL) {
ERROR("rrdcached plugin: daemon_address == NULL.");
if (daemon_address == NULL) {
ERROR("rrdcached plugin: daemon_address == NULL.");
@@
-474,7
+474,7
@@
static int rc_flush(__attribute__((unused)) cdtime_t timeout, /* {{{ */
__attribute__((unused)) user_data_t *ud) {
char filename[PATH_MAX + 1];
int status;
__attribute__((unused)) user_data_t *ud) {
char filename[PATH_MAX + 1];
int status;
-
_B
ool retried = 0;
+
b
ool retried = 0;
if (identifier == NULL)
return EINVAL;
if (identifier == NULL)
return EINVAL;