# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1196195200 28800
# Node ID 4036e27b892058dbe0ea944d74932554b53c2c67
# Parent 589cad1316a9eb3fe0214cf9515bb72ccaef91f8
Fixes to VSSDComponent for libcmpiutil API change
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 589cad1316a9 -r 4036e27b8920 src/Virt_VSSDComponent.c
--- a/src/Virt_VSSDComponent.c Tue Nov 27 12:25:27 2007 -0800
+++ b/src/Virt_VSSDComponent.c Tue Nov 27 12:26:40 2007 -0800
@@ -117,15 +117,14 @@ static CMPIStatus rasd_to_vssd(const CMP
{
CMPIStatus s;
CMPIInstance *vssd = NULL;
- char *id = NULL;
+ const char *id = NULL;
char *host = NULL;
char *devid = NULL;
int ret;
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");
@@ -145,7 +144,6 @@ static CMPIStatus rasd_to_vssd(const CMP
inst_list_add(list, vssd);
out:
- free(id);
free(host);
free(devid);