mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
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:
parent
7c3b0ffc32
commit
3b673765bb
6 changed files with 8 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue