Fix compilation on Debian

json-c 0.13 isn't required.
The size_t -> int changes are more correct as that's what the json functions return.
This commit is contained in:
Rostislav Pehlivanov 2018-06-15 23:50:32 +01:00
parent 55fe5fc580
commit 16668fed25
5 changed files with 5 additions and 5 deletions

View file

@ -270,7 +270,7 @@ static void ipc_get_outputs(struct swaybar *bar) {
char *res = ipc_single_command(bar->ipc_socketfd,
IPC_GET_OUTPUTS, NULL, &len);
json_object *outputs = json_tokener_parse(res);
for (size_t i = 0; i < json_object_array_length(outputs); ++i) {
for (int i = 0; i < json_object_array_length(outputs); ++i) {
json_object *output = json_object_array_get_idx(outputs, i);
json_object *output_name, *output_active;
json_object_object_get_ex(output, "name", &output_name);