diff options
| author | Björn Esser <besser82@fedoraproject.org> | 2017-12-14 17:14:47 +0100 |
|---|---|---|
| committer | Björn Esser <besser82@fedoraproject.org> | 2017-12-14 18:47:24 +0100 |
| commit | 02da9c4e7cafb36083566e511cc7913d8922aaa6 (patch) | |
| tree | c7993993d3f0536512a0ddfb811f44d7cc7479fe /swaylock/main.c | |
| parent | 8272a9bae0d288b479c517dde3e831ea3889dc7f (diff) | |
Adaptions for API change in json-c v0.13
Diffstat (limited to 'swaylock/main.c')
| -rw-r--r-- | swaylock/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swaylock/main.c b/swaylock/main.c index c2615951..7b7dd601 100644 --- a/swaylock/main.c +++ b/swaylock/main.c @@ -3,7 +3,6 @@ #include <xkbcommon/xkbcommon.h> #include <xkbcommon/xkbcommon-names.h> #include <security/pam_appl.h> -#include <json-c/json.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -13,6 +12,7 @@ #include <signal.h> #include <stdbool.h> #include <unistd.h> +#include "sway_json_helper.h" #include "client/window.h" #include "client/registry.h" #include "client/cairo.h" @@ -584,7 +584,7 @@ int main(int argc, char **argv) { for (i = 0; i < registry->outputs->length; ++i) { if (displays_paths[i * 2] != NULL) { - for (int j = 0;; ++j) { + for (json_ar_len_t j = 0;; ++j) { if (j >= json_object_array_length(json_outputs)) { sway_log(L_ERROR, "%s is not an extant output", displays_paths[i * 2]); exit(EXIT_FAILURE); |
