0c5c2d
From e5a8fb6dfe5276fbd55235298bb3fd008b62d0ae Mon Sep 17 00:00:00 2001
0c5c2d
From: Kyle Russell <bkylerussell@gmail.com>
0c5c2d
Date: Wed, 7 Feb 2018 16:01:11 -0500
0c5c2d
Subject: [PATCH 19/22] ureport: remove json-c is_error() usage
0c5c2d
0c5c2d
This macro has been deprecated and removed from json-c/bits.h.
0c5c2d
---
0c5c2d
 src/lib/ureport.c | 2 +-
0c5c2d
 1 file changed, 1 insertion(+), 1 deletion(-)
0c5c2d
0c5c2d
diff --git a/src/lib/ureport.c b/src/lib/ureport.c
0c5c2d
index 6f1c05a3..c32c948a 100644
0c5c2d
--- a/src/lib/ureport.c
0c5c2d
+++ b/src/lib/ureport.c
0c5c2d
@@ -613,7 +613,7 @@ ureport_server_response_from_reply(post_state_t *post_state,
0c5c2d
 
0c5c2d
     json_object *const json = json_tokener_parse(post_state->body);
0c5c2d
 
0c5c2d
-    if (is_error(json))
0c5c2d
+    if (json == NULL)
0c5c2d
     {
0c5c2d
         error_msg(_("Unable to parse response from ureport server at '%s'"), config->ur_url);
0c5c2d
         log_notice("%s", post_state->body);
0c5c2d
-- 
0c5c2d
2.14.3
0c5c2d