projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
collectd-tg: fix warning
[collectd.git]
/
src
/
curl_json.c
diff --git
a/src/curl_json.c
b/src/curl_json.c
index
1a1136a
..
f0badc9
100644
(file)
--- a/
src/curl_json.c
+++ b/
src/curl_json.c
@@
-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);
}