HE> + char *base = NULL;
This should be a const char *.
HE> + switch(rasd->resource_type) {
HE> + case CIM_RASD_TYPE_MEM:
HE> + base = "MemResourceAllocationSettingData";
HE> + break;
HE> + case CIM_RASD_TYPE_PROC:
HE> + base = "ProcResourceAllocationSettingData";
HE> + break;
HE> + case CIM_RASD_TYPE_NET:
HE> + base = "NetResourceAllocationSettingData";
HE> + break;
HE> + case CIM_RASD_TYPE_DISK:
HE> + base = "DiskResourceAllocationSettingData";
HE> + break;
HE> + default:
HE> + cu_statusf(broker, s,
HE> + CMPI_RC_ERR_FAILED,
HE> + "Resource type not known");
HE> + goto err;
HE> + }
HE> +
Maybe this should be a helper function exposed in Virt_RASD.h, instead
of buried in SDC?
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms(a)us.ibm.com