[PATCH] Fix qualifier warning in ComputerSystemIndication

# HG changeset patch # User Zhengang Li <lizg@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@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)

ZL> # HG changeset patch ZL> # User Zhengang Li <lizg@cn.ibm.com> ZL> # Date 1193917483 -28800 ZL> # Node ID 2ccfeb1d4b8636a445ac2b834c8be152cb1e20de ZL> # Parent d349e62b888f0dda3577ff0e55f4dbe7681a5d57 ZL> Fix qualifier warning in ComputerSystemIndication ZL> The "char *" cast for "type" param of _lifecycle_indication() is ZL> unnecessary, because get_typed_instance()'s 2nd param is also ZL> "const char *", and no other reference for "type" in this ZL> function. I'm not sure why that was there in the first place :) Thanks! -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com
participants (2)
-
Dan Smith
-
lizg@cn.ibm.com