* [PATCH 1/1] fix boolean value with json-c 0.14
@ 2020-04-26 19:13 Christian Hesse
0 siblings, 0 replies; 2+ messages in thread
From: Christian Hesse @ 2020-04-26 19:13 UTC (permalink / raw)
To: Device-mapper development mailing list; +Cc: mail
From: "mail@eworm.de" <mail@eworm.de>
Upstream removed the TRUE and FALSE defines in commit
0992aac61f8b087efd7094e9ac2b84fa9c040fcd.
Signed-off-by: Christian Hesse <mail@eworm.de>
---
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 ac85b63f..29400826 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; \
} \
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 1/1] fix boolean value with json-c 0.14
@ 2020-04-25 19:11 Christian Hesse
0 siblings, 0 replies; 2+ messages in thread
From: Christian Hesse @ 2020-04-25 19:11 UTC (permalink / raw)
To: Christophe Varoqui; +Cc: Christian Hesse
Upstream removed the TRUE and FALSE defines in commit
0992aac61f8b087efd7094e9ac2b84fa9c040fcd.
Signed-off-by: Christian Hesse <mail@eworm.de>
---
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 ac85b63f..29400826 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; \
} \
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-26 19:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-26 19:13 [PATCH 1/1] fix boolean value with json-c 0.14 Christian Hesse
-- strict thread matches above, loose matches on Subject: below --
2020-04-25 19:11 Christian Hesse
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.