[Libvirt-cim] [PATCH] [CU] Fix const pointer warning

Dan Smith danms at us.ibm.com
Thu Feb 28 16:36:30 UTC 2008


ZL> diff -r b2606bc023a8 -r 8ef92e008bcb std_indication.c
ZL> --- a/std_indication.c	Tue Feb 26 15:16:00 2008 -0500
ZL> +++ b/std_indication.c	Wed Feb 27 09:48:23 2008 +0800
ZL> @@ -214,7 +214,7 @@ CMPIStatus stdi_activate_filter(CMPIIndi
ZL>          char *cn = NULL;
         
ZL>          _ctx = (struct std_indication_ctx *)mi->hdl;
ZL> -        cn = CLASSNAME(op);
ZL> +        cn = (char *)CLASSNAME(op);
ZL>          s = stdi_set_ind_filter_state(_ctx, cn, true);

Shouldn't we change cn to be a const char *, instead of casting it to
char *?

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20080228/51ff5bdd/attachment.sig>


More information about the Libvirt-cim mailing list