Revert "Merge remote-tracking branch 'besser82/bugfix/json-c' into 0.15"

This reverts commit 1c4a086e75, reversing
changes made to 1263ea6497.
This commit is contained in:
Drew DeVault 2017-12-17 15:52:34 -05:00
parent 1c4a086e75
commit d0bd0ed598
9 changed files with 17 additions and 48 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,7 +70,8 @@ static void parse_json(struct bar *bar, const char *text) {
bar->status->block_line = create_list();
for (json_ar_len_t i = 0; i < json_object_array_length(results); ++i) {
int i;
for (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;