
# HG changeset patch # User Dan Smith <danms@us.ibm.com> # Date 1196272229 28800 # Node ID ca82a00fd6dafc045f2d5958feeb2decb2f750bc # Parent 6d9aed8314c6a9c00ee506d724695859c623e396 Fixes to Device for libcmpiutil API change Signed-off-by: Dan Smith <danms@us.ibm.com> diff -r 6d9aed8314c6 -r ca82a00fd6da src/Virt_Device.c --- a/src/Virt_Device.c Wed Nov 28 09:50:29 2007 -0800 +++ b/src/Virt_Device.c Wed Nov 28 09:50:29 2007 -0800 @@ -470,7 +470,7 @@ CMPIInstance *instance_from_devid(const static CMPIStatus get_device(const CMPIObjectPath *reference, const CMPIResult *results, - char *devid) + const char *devid) { CMPIStatus s; virConnectPtr conn; @@ -525,10 +525,9 @@ static CMPIStatus GetInstance(CMPIInstan const CMPIObjectPath *reference, const char **properties) { - char *devid; - - devid = cu_get_str_path(reference, "DeviceID"); - if (devid == NULL) { + const char *devid; + + if (cu_get_str_path(reference, "DeviceID", &devid) != CMPI_RC_OK) { CMPIStatus s; CMSetStatusWithChars(_BROKER, &s,