37ad201
From 395bbb2cbd9a12ff11068ea29922e1575d4d93b3 Mon Sep 17 00:00:00 2001
37ad201
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
37ad201
Date: Sun, 10 Dec 2017 22:59:33 +0100
37ad201
Subject: [PATCH] Fix build against libjson-c.so.3
37ad201
37ad201
---
37ad201
 src/daemon/abrt-action-save-container-data.c | 2 +-
37ad201
 src/plugins/bodhi.c                          | 2 +-
37ad201
 2 files changed, 2 insertions(+), 2 deletions(-)
37ad201
37ad201
diff --git a/src/daemon/abrt-action-save-container-data.c b/src/daemon/abrt-action-save-container-data.c
37ad201
index 5d8cdb7..9a5bfa4 100644
37ad201
--- a/src/daemon/abrt-action-save-container-data.c
37ad201
+++ b/src/daemon/abrt-action-save-container-data.c
37ad201
@@ -141,7 +141,7 @@ void dump_docker_info(struct dump_dir *dd, const char *root_dir)
37ad201
     json = json_tokener_parse(output);
37ad201
     free(output);
37ad201
 
37ad201
-    if (is_error(json))
37ad201
+    if (json == NULL)
37ad201
     {
37ad201
         error_msg("Unable parse response from docker");
37ad201
         goto dump_docker_info_cleanup;
37ad201
diff --git a/src/plugins/bodhi.c b/src/plugins/bodhi.c
37ad201
index 84ed4d8..14d65ad 100644
37ad201
--- a/src/plugins/bodhi.c
37ad201
+++ b/src/plugins/bodhi.c
37ad201
@@ -419,7 +419,7 @@ static GHashTable *bodhi_query_list(const char *query, const char *release)
37ad201
 //    log_warning("%s", post_state->body);
37ad201
 
37ad201
     json_object *json = json_tokener_parse(post_state->body);
37ad201
-    if (is_error(json))
37ad201
+    if (json == NULL)
37ad201
         error_msg_and_die("fatal: unable parse response from bodhi server");
37ad201
 
37ad201
     /* we must check the http_resp_code because only error responses contain
37ad201
-- 
37ad201
2.15.1
37ad201