projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2771 from rubenk/stdbool
[collectd.git]
/
src
/
dbi.c
diff --git
a/src/dbi.c
b/src/dbi.c
index
60324e8
..
5f8520f
100644
(file)
--- a/
src/dbi.c
+++ b/
src/dbi.c
@@
-54,7
+54,7
@@
struct cdbi_driver_option_s /* {{{ */
char *string;
int numeric;
} value;
char *string;
int numeric;
} value;
-
_B
ool is_numeric;
+
b
ool is_numeric;
};
typedef struct cdbi_driver_option_s cdbi_driver_option_t; /* }}} */
};
typedef struct cdbi_driver_option_s cdbi_driver_option_t; /* }}} */
@@
-258,7
+258,7
@@
static int cdbi_config_add_database_driver_option(cdbi_database_t *db, /* {{{ */
} else {
assert(ci->values[1].type == OCONFIG_TYPE_NUMBER);
option->value.numeric = (int)(ci->values[1].value.number + .5);
} else {
assert(ci->values[1].type == OCONFIG_TYPE_NUMBER);
option->value.numeric = (int)(ci->values[1].value.number + .5);
- option->is_numeric =
1
;
+ option->is_numeric =
true
;
}
db->driver_options_num++;
}
db->driver_options_num++;