Adaptions for API change in json-c v0.13

This commit is contained in:
Björn Esser 2017-12-14 17:14:47 +01:00
parent 8272a9bae0
commit 02da9c4e7c
No known key found for this signature in database
GPG key ID: F52E98007594C21D
7 changed files with 29 additions and 15 deletions

View file

@ -2,8 +2,8 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <json-c/json.h>
#include "sway_json_helper.h"
#include "swaybar/config.h"
#include "swaybar/status_line.h"
#include "log.h"
@ -70,8 +70,7 @@ static void parse_json(struct bar *bar, const char *text) {
bar->status->block_line = create_list();
int i;
for (i = 0; i < json_object_array_length(results); ++i) {
for (json_ar_len_t i = 0; i < json_object_array_length(results); ++i) {
json_object *full_text, *short_text, *color, *min_width, *align, *urgent;
json_object *name, *instance, *separator, *separator_block_width;
json_object *background, *border, *border_top, *border_bottom;