mirror of
https://github.com/swaywm/sway.git
synced 2026-03-30 11:10:59 -04:00
Adaptions for API change in json-c v0.13
This commit is contained in:
parent
8272a9bae0
commit
02da9c4e7c
7 changed files with 29 additions and 15 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue