# HG changeset patch
# User Zhengang Li <lizg(a)cn.ibm.com>
# Date 1193917483 -28800
# Node ID 2ccfeb1d4b8636a445ac2b834c8be152cb1e20de
# Parent d349e62b888f0dda3577ff0e55f4dbe7681a5d57
Fix qualifier warning in ComputerSystemIndication
The "char *" cast for "type" param of _lifecycle_indication() is
unnecessary,
because get_typed_instance()'s 2nd param is also "const char *", and no
other
reference for "type" in this function.
Signed-off-by: Zhengang Li <lizg(a)cn.ibm.com>
diff -r d349e62b888f -r 2ccfeb1d4b86 src/Virt_ComputerSystemIndication.c
--- a/src/Virt_ComputerSystemIndication.c Wed Oct 31 17:04:17 2007 -0700
+++ b/src/Virt_ComputerSystemIndication.c Thu Nov 01 19:44:43 2007 +0800
@@ -65,7 +65,7 @@ static bool _lifecycle_indication(const
static bool _lifecycle_indication(const CMPIBroker *broker,
const CMPIContext *ctx,
const CMPIObjectPath *newsystem,
- char *type)
+ const char *type)
{
CMPIObjectPath *ind_op;
CMPIInstance *ind;
@@ -171,7 +171,7 @@ static bool async_ind(CMPIContext *conte
free(type_cn);
- return _lifecycle_indication(_BROKER, context, op, (char *)type_name);
+ return _lifecycle_indication(_BROKER, context, op, type_name);
}
static CMPI_THREAD_RETURN lifecycle_thread(void *params)