json-c has removed the boolean typedefs since json-c-0.14-20200419 release (upstream commit 0992aac61f8b ("Remove the TRUE and FALSE defines."). Replace all occurences of TRUE/FALSE with 1/0 to unbreak compilation, following the json-c upstream convention. Signed-off-by: Anthony Iliopoulos <ailiop@xxxxxxxx> --- libdmmp/libdmmp_private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libdmmp/libdmmp_private.h b/libdmmp/libdmmp_private.h index ac85b63f88f3..2940082666a2 100644 --- a/libdmmp/libdmmp_private.h +++ b/libdmmp/libdmmp_private.h @@ -82,7 +82,7 @@ static out_type func_name(struct dmmp_context *ctx, const char *var_name) { \ do { \ json_type j_type = json_type_null; \ json_object *j_obj_tmp = NULL; \ - if (json_object_object_get_ex(j_obj, key, &j_obj_tmp) != TRUE) { \ + if (json_object_object_get_ex(j_obj, key, &j_obj_tmp) != 1) { \ _error(ctx, "Invalid JSON output from multipathd IPC: " \ "key '%s' not found", key); \ rc = DMMP_ERR_IPC_ERROR; \ @@ -90,7 +90,7 @@ do { \ } \ if (j_obj_tmp == NULL) { \ _error(ctx, "BUG: Got NULL j_obj_tmp from " \ - "json_object_object_get_ex() while it return TRUE"); \ + "json_object_object_get_ex() while it return 1"); \ rc = DMMP_ERR_BUG; \ goto out; \ } \ -- 2.28.0 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel