X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcommands_parser.c;h=870260487358cd8dccb9ff498e302662c64e6d78;hb=13db56255134a71acd2fd5a7e254adfbd0c2983b;hp=05d39cff53790ef42ed61ab1e896a137f19a3984;hpb=22b4215d9238d2b9ac64eb9a65afb5faa4ce33cc;p=i3%2Fi3 diff --git a/src/commands_parser.c b/src/commands_parser.c index 05d39cff..87026048 100644 --- a/src/commands_parser.c +++ b/src/commands_parser.c @@ -209,12 +209,8 @@ struct CommandResult *parse_command(const char *input) { DLOG("COMMAND: *%s*\n", input); state = INITIAL; -/* 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); command_output.needs_tree_render = false;