X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcurl_json.c;h=f0badc998e05c2be1f45e0f04bcc365f88d3ab56;hp=1a1136a9e25d47e0e950c1b1cd8efacab5a7862b;hb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;hpb=61a4ed99b1a5b6d371bb745933d0efc5dff9505c diff --git a/src/curl_json.c b/src/curl_json.c index 1a1136a9..f0badc99 100644 --- 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++; - 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"); @@ -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; - db->state[db->depth].in_array = 0; + db->state[db->depth].in_array = false; return cj_cb_end(ctx); }