Update to json-c 0.13

Update json-c dependency to 0.13, which changed the return type of
json_object_array_length to support only a size_t instead of an int as
fallback.
This commit is contained in:
Jelle van der Waa 2017-12-27 14:21:51 +01:00
parent 7c3b0ffc32
commit 3b673765bb
6 changed files with 8 additions and 8 deletions

View file

@ -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 (size_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);