at 23.05-pre 21 lines 764 B view raw
1diff --git a/libdmmp/libdmmp_private.h b/libdmmp/libdmmp_private.h 2index ac85b63f..b1a6ddea 100644 3--- a/libdmmp/libdmmp_private.h 4+++ b/libdmmp/libdmmp_private.h 5@@ -30,6 +30,7 @@ 6 #include <stdint.h> 7 #include <string.h> 8 #include <assert.h> 9+#include <stdbool.h> 10 #include <json.h> 11 12 #include "libdmmp/libdmmp.h" 13@@ -82,7 +83,7 @@ static out_type func_name(struct dmmp_context *ctx, const char *var_name) { \ 14 do { \ 15 json_type j_type = json_type_null; \ 16 json_object *j_obj_tmp = NULL; \ 17- if (json_object_object_get_ex(j_obj, key, &j_obj_tmp) != TRUE) { \ 18+ if (json_object_object_get_ex(j_obj, key, &j_obj_tmp) != true) { \ 19 _error(ctx, "Invalid JSON output from multipathd IPC: " \ 20 "key '%s' not found", key); \ 21 rc = DMMP_ERR_IPC_ERROR; \