diff options
| author | Drew DeVault <sir@cmpwn.com> | 2017-12-17 15:51:49 -0500 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2017-12-17 15:51:49 -0500 |
| commit | 1c4a086e7556475139960a25cb642f115d057c23 (patch) | |
| tree | baa407363899155a876ea6993ad55020059c5cfd /swaybar | |
| parent | 1263ea6497c732bfa1835eea4a8ffe2e6ea6e377 (diff) | |
| parent | 02da9c4e7cafb36083566e511cc7913d8922aaa6 (diff) | |
Merge remote-tracking branch 'besser82/bugfix/json-c' into 0.15
Diffstat (limited to 'swaybar')
| -rw-r--r-- | swaybar/status_line.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/swaybar/status_line.c b/swaybar/status_line.c index 87e90caf..e3cc0bf4 100644 --- a/swaybar/status_line.c +++ b/swaybar/status_line.c @@ -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; |
