# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1196195285 28800
# Node ID 4a88569d292542741d8e9260111e9b2f4d4dee9f
# Parent fa0aa635ce2eb93e8a6f8581056f3d0f40122389
Fixes to ElementSettingData for libcmpiutil API change
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r fa0aa635ce2e -r 4a88569d2925 src/Virt_ElementSettingData.c
--- a/src/Virt_ElementSettingData.c Tue Nov 27 12:27:48 2007 -0800
+++ b/src/Virt_ElementSettingData.c Tue Nov 27 12:28:05 2007 -0800
@@ -90,13 +90,12 @@ static CMPIStatus rasd_to_rasd(const CMP
{
CMPIStatus s = {CMPI_RC_OK, NULL};
CMPIInstance *inst;
- char *id = NULL;
+ const char *id = NULL;
uint16_t type;
ASSOC_MATCH(info->provider_name, CLASSNAME(ref));
- id = cu_get_str_path(ref, "InstanceID");
- if (id == NULL) {
+ if (cu_get_str_path(ref, "InstanceID", &id) != CMPI_RC_OK) {
cu_statusf(_BROKER, &s,
CMPI_RC_ERR_FAILED,
"Missing InstanceID");
@@ -122,8 +121,6 @@ static CMPIStatus rasd_to_rasd(const CMP
inst_list_add(list, inst);
out:
- free(id);
-
return s;
}