Remove yajl major version conditionals
Yajl version ≥ 2 is required. fixes #1156
This commit is contained in:
committed by
Michael Stapelberg
parent
22b4215d92
commit
13db562551
@ -323,12 +323,8 @@ struct ConfigResult *parse_config(const char *input, struct context *context) {
|
||||
state = INITIAL;
|
||||
statelist_idx = 1;
|
||||
|
||||
/* A YAJL JSON generator used for formatting replies. */
|
||||
#if YAJL_MAJOR >= 2
|
||||
/* A YAJL JSON generator used for formatting replies. */
|
||||
command_output.json_gen = yajl_gen_alloc(NULL);
|
||||
#else
|
||||
command_output.json_gen = yajl_gen_alloc(NULL, NULL);
|
||||
#endif
|
||||
|
||||
y(array_open);
|
||||
|
||||
|
Reference in New Issue
Block a user