aboutsummaryrefslogtreecommitdiffstats
path: root/swaylock
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-12-17 15:51:49 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2017-12-17 15:51:49 -0500
commit1c4a086e7556475139960a25cb642f115d057c23 (patch)
treebaa407363899155a876ea6993ad55020059c5cfd /swaylock
parentMerge pull request #1519 from ggreer/clear-password-buffer-0.15 (diff)
parentAdaptions for API change in json-c v0.13 (diff)
downloadsway-1c4a086e7556475139960a25cb642f115d057c23.tar.gz
sway-1c4a086e7556475139960a25cb642f115d057c23.tar.zst
sway-1c4a086e7556475139960a25cb642f115d057c23.zip
Merge remote-tracking branch 'besser82/bugfix/json-c' into 0.15
Diffstat (limited to 'swaylock')
-rw-r--r--swaylock/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/swaylock/main.c b/swaylock/main.c
index 4b486461..3208a45b 100644
--- a/swaylock/main.c
+++ b/swaylock/main.c
@@ -3,7 +3,6 @@
3#include <xkbcommon/xkbcommon.h> 3#include <xkbcommon/xkbcommon.h>
4#include <xkbcommon/xkbcommon-names.h> 4#include <xkbcommon/xkbcommon-names.h>
5#include <security/pam_appl.h> 5#include <security/pam_appl.h>
6#include <json-c/json.h>
7#include <stdio.h> 6#include <stdio.h>
8#include <stdlib.h> 7#include <stdlib.h>
9#include <string.h> 8#include <string.h>
@@ -14,6 +13,7 @@
14#include <signal.h> 13#include <signal.h>
15#include <stdbool.h> 14#include <stdbool.h>
16#include <unistd.h> 15#include <unistd.h>
16#include "sway_json_helper.h"
17#include "client/window.h" 17#include "client/window.h"
18#include "client/registry.h" 18#include "client/registry.h"
19#include "client/cairo.h" 19#include "client/cairo.h"
@@ -583,7 +583,7 @@ int main(int argc, char **argv) {
583 583
584 for (i = 0; i < registry->outputs->length; ++i) { 584 for (i = 0; i < registry->outputs->length; ++i) {
585 if (displays_paths[i * 2] != NULL) { 585 if (displays_paths[i * 2] != NULL) {
586 for (int j = 0;; ++j) { 586 for (json_ar_len_t j = 0;; ++j) {
587 if (j >= json_object_array_length(json_outputs)) { 587 if (j >= json_object_array_length(json_outputs)) {
588 sway_log(L_ERROR, "%s is not an extant output", displays_paths[i * 2]); 588 sway_log(L_ERROR, "%s is not an extant output", displays_paths[i * 2]);
589 exit(EXIT_FAILURE); 589 exit(EXIT_FAILURE);