forked from pool/libcmpiutil
* github: enable lockdown of issues and merge requests * libcmpiutil: Fix endianness issues in embedded object parsing * Fix compilation on ARM * Release 0.5.7 * libcmpiutil: add time and thread info in debug log * libcmpiutil: fix potential debug print crash * Added tag release_0_5_6 for changeset c7ba1bbeba54 * Bump version to 0.5.6 * libcmpiutil: Add libtool version info * libcmpituil: Proper definition of LEX_OUTPUT_ROOT - drop 0001-libcmpiutil-Fix-endianness-issues-in-embedded-object.patch (upstream) - rename 0002-fix-ARM-build.patch to 0001-fix-ARM-build.patch 0003-drop-duplicate-definition-of-_FORTIFY_SOURCE.patch to 0002-drop-duplicate-definition-of-_FORTIFY_SOURCE.patch OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/libcmpiutil?expand=0&rev=24
71 lines
2.5 KiB
Diff
71 lines
2.5 KiB
Diff
From f278c309f5e5ee3505bf36f675bd9828d77efe75 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
|
|
Date: Thu, 23 Jun 2022 14:29:39 +0200
|
|
Subject: [PATCH 1/2] fix ARM build
|
|
|
|
---
|
|
eo_parser_xml.c | 2 +-
|
|
std_association.c | 4 ++--
|
|
std_indication.c | 2 +-
|
|
std_invokemethod.c | 2 +-
|
|
4 files changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/eo_parser_xml.c b/eo_parser_xml.c
|
|
index 551a87b..4e34db5 100644
|
|
--- a/eo_parser_xml.c
|
|
+++ b/eo_parser_xml.c
|
|
@@ -298,7 +298,7 @@ static bool parse_array_property(const CMPIBroker *broker,
|
|
type = parse_array(broker, tstr, val_arr, &array);
|
|
if (type != CMPI_null) {
|
|
CU_DEBUG("Setting array property");
|
|
- CMSetProperty(inst, name, &array, (CMPI_ARRAY | type));
|
|
+ CMSetProperty(inst, name, (void*)&array, (CMPI_ARRAY | type));
|
|
}
|
|
}
|
|
|
|
diff --git a/std_association.c b/std_association.c
|
|
index 9204628..2646722 100644
|
|
--- a/std_association.c
|
|
+++ b/std_association.c
|
|
@@ -38,9 +38,9 @@ void set_reference(struct std_assoc *assoc,
|
|
const CMPIObjectPath *target)
|
|
{
|
|
CMSetProperty(inst, assoc->source_prop,
|
|
- (CMPIValue *)&source, CMPI_ref);
|
|
+ (CMPIValue *)(void*)&source, CMPI_ref);
|
|
CMSetProperty(inst, assoc->target_prop,
|
|
- (CMPIValue *)&target, CMPI_ref);
|
|
+ (CMPIValue *)(void*)&target, CMPI_ref);
|
|
}
|
|
|
|
static bool match_op(const CMPIBroker *broker,
|
|
diff --git a/std_indication.c b/std_indication.c
|
|
index 21df1f5..eb2771e 100644
|
|
--- a/std_indication.c
|
|
+++ b/std_indication.c
|
|
@@ -402,7 +402,7 @@ CMPIStatus stdi_raise_indication(const CMPIBroker *broker,
|
|
if (s.rc != CMPI_RC_OK)
|
|
return s;
|
|
|
|
- s = CMAddArg(argsin, "TheIndication", &ind, CMPI_instance);
|
|
+ s = CMAddArg(argsin, "TheIndication", (void*)&ind, CMPI_instance);
|
|
if (s.rc != CMPI_RC_OK)
|
|
return s;
|
|
|
|
diff --git a/std_invokemethod.c b/std_invokemethod.c
|
|
index fb40c1d..10a143b 100644
|
|
--- a/std_invokemethod.c
|
|
+++ b/std_invokemethod.c
|
|
@@ -115,7 +115,7 @@ static int parse_eo_array(CMPIArray *strings_in,
|
|
}
|
|
|
|
CMSetArrayElementAt(*instances_out, i,
|
|
- (CMPIValue *)&inst,
|
|
+ (CMPIValue *)(void*)&inst,
|
|
CMPI_instance);
|
|
}
|
|
|
|
--
|
|
2.47.0
|
|
|