aboutsummaryrefslogtreecommitdiff
path: root/swaymsg
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2017-12-17 15:52:34 -0500
committerFurkan Sahin <furkan-dev@proton.me>2017-12-17 15:52:34 -0500
commit730c74c475ee4587a280e6ffc6229edceca8fcf2 (patch)
tree4444227f247f9b7cdb854144eb4332e607c34987 /swaymsg
parenta427d79c013a14ce196ca8dac5644ff2c76637ca (diff)
Revert "Merge remote-tracking branch 'besser82/bugfix/json-c' into 0.15"
This reverts commit a427d79c013a14ce196ca8dac5644ff2c76637ca, reversing changes made to f896cb48106e704a57f93790b46fa7e183d646eb.
Diffstat (limited to 'swaymsg')
-rw-r--r--swaymsg/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c
index 0ee7c76f..2f9cfb14 100644
--- a/swaymsg/main.c
+++ b/swaymsg/main.c
@@ -9,7 +9,7 @@
#include <sys/socket.h>
#include <ctype.h>
#include <unistd.h>
-#include "sway_json_helper.h"
+#include <json-c/json.h>
#include "stringop.h"
#include "ipc-client.h"
#include "readline.h"
@@ -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 (json_ar_len_t i = 0; i < json_object_array_length(v); ++i) {
+ for (int 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));
}