]> git.pld-linux.org Git - packages/multipath-tools.git/blob - multipath-tools-json-c.patch
- added json-c patch (fixes build with json-c 0.14), more BRs; release 2
[packages/multipath-tools.git] / multipath-tools-json-c.patch
1 --- multipath-tools-0.8.3-6c3bd36/libdmmp/libdmmp_private.h.orig        2019-10-02 09:15:03.000000000 +0200
2 +++ multipath-tools-0.8.3-6c3bd36/libdmmp/libdmmp_private.h     2020-05-01 21:47:31.600996702 +0200
3 @@ -82,7 +82,7 @@
4  do { \
5         json_type j_type = json_type_null; \
6         json_object *j_obj_tmp = NULL; \
7 -       if (json_object_object_get_ex(j_obj, key, &j_obj_tmp) != TRUE) { \
8 +       if (json_object_object_get_ex(j_obj, key, &j_obj_tmp) != 1) { \
9                 _error(ctx, "Invalid JSON output from multipathd IPC: " \
10                        "key '%s' not found", key); \
11                 rc = DMMP_ERR_IPC_ERROR; \
12 @@ -90,7 +90,7 @@
13         } \
14         if (j_obj_tmp == NULL) { \
15                 _error(ctx, "BUG: Got NULL j_obj_tmp from " \
16 -                      "json_object_object_get_ex() while it return TRUE"); \
17 +                      "json_object_object_get_ex() while it return 1"); \
18                 rc = DMMP_ERR_BUG; \
19                 goto out; \
20         } \
This page took 0.05544 seconds and 3 git commands to generate.