projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
table plugin: modernize code a bit
[collectd.git]
/
src
/
curl_json.c
diff --git
a/src/curl_json.c
b/src/curl_json.c
index
09a606a
..
f0badc9
100644
(file)
--- a/
src/curl_json.c
+++ b/
src/curl_json.c
@@
-74,7
+74,7
@@
typedef struct {
* exists for this part of the JSON structure. */
typedef struct {
cj_tree_entry_t *entry;
* exists for this part of the JSON structure. */
typedef struct {
cj_tree_entry_t *entry;
-
_B
ool in_array;
+
b
ool in_array;
int index;
char name[DATA_MAX_NAME_LEN];
} cj_state_t;
int index;
char name[DATA_MAX_NAME_LEN];
} cj_state_t;
@@
-91,9
+91,9
@@
struct cj_s /* {{{ */
char *user;
char *pass;
char *credentials;
char *user;
char *pass;
char *credentials;
-
_B
ool digest;
-
_B
ool verify_peer;
-
_B
ool verify_host;
+
b
ool digest;
+
b
ool verify_peer;
+
b
ool verify_host;
char *cacert;
struct curl_slist *headers;
char *post_body;
char *cacert;
struct curl_slist *headers;
char *post_body;
@@
-325,7
+325,7
@@
static int cj_cb_start_array(void *ctx) {
return CJ_CB_ABORT;
}
db->depth++;
return CJ_CB_ABORT;
}
db->depth++;
- db->state[db->depth].in_array =
1
;
+ db->state[db->depth].in_array =
true
;
db->state[db->depth].index = 0;
cj_load_key(db, "0");
db->state[db->depth].index = 0;
cj_load_key(db, "0");
@@
-335,7
+335,7
@@
static int cj_cb_start_array(void *ctx) {
static int cj_cb_end_array(void *ctx) {
cj_t *db = (cj_t *)ctx;
static int cj_cb_end_array(void *ctx) {
cj_t *db = (cj_t *)ctx;
- db->state[db->depth].in_array =
0
;
+ db->state[db->depth].in_array =
false
;
return cj_cb_end(ctx);
}
return cj_cb_end(ctx);
}