use designated initializers for yajl_callbacks struct

This commit is contained in:
Alexander Kedrik
2014-01-01 20:19:55 +04:00
committed by Michael Stapelberg
parent 81fd4ec71c
commit de3901bb29
11 changed files with 62 additions and 118 deletions

View File

@ -51,17 +51,10 @@ static int json_end_map(void *ctx) {
}
static yajl_callbacks command_error_callbacks = {
NULL,
&json_boolean,
NULL,
NULL,
NULL,
NULL,
&json_start_map,
&json_map_key,
&json_end_map,
NULL,
NULL
.yajl_boolean = json_boolean,
.yajl_start_map = json_start_map,
.yajl_map_key = json_map_key,
.yajl_end_map = json_end_map,
};
/*