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 f1560e5eb6
commit 705b43294a
11 changed files with 58 additions and 114 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,
};
/*