use designated initializers for yajl_callbacks struct
This commit is contained in:
committed by
Michael Stapelberg
parent
81fd4ec71c
commit
de3901bb29
@ -72,18 +72,9 @@ static int mode_map_key_cb(void *params_, const unsigned char *keyVal, unsigned
|
||||
}
|
||||
|
||||
/* A datastructure to pass all these callbacks to yajl */
|
||||
yajl_callbacks mode_callbacks = {
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&mode_string_cb,
|
||||
NULL,
|
||||
&mode_map_key_cb,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
static yajl_callbacks mode_callbacks = {
|
||||
.yajl_string = mode_string_cb,
|
||||
.yajl_map_key = mode_map_key_cb,
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user