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
|
|
@ -149,7 +149,7 @@ static void pretty_print_version(json_object *v) {
|
|||
static void pretty_print_clipboard(json_object *v) {
|
||||
if (success(v, true)) {
|
||||
if (json_object_is_type(v, json_type_array)) {
|
||||
for (int i = 0; i < json_object_array_length(v); ++i) {
|
||||
for (size_t i = 0; i < json_object_array_length(v); ++i) {
|
||||
json_object *o = json_object_array_get_idx(v, i);
|
||||
printf("%s\n", json_object_get_string(o));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue