[Libvirt-cim] [PATCH] [CU] Fix warning in cu_dup_instance() that breaks build
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Wed Feb 13 16:13:18 UTC 2008
Dan Smith wrote:
> # HG changeset patch
> # User Dan Smith <danms at us.ibm.com>
> # Date 1202917533 28800
> # Node ID c19e321766902af6dba29025be964d8d45537c51
> # Parent bd9472d3aa5f9f91553813e25731ae90c2555917
> [CU] Fix warning in cu_dup_instance() that breaks build
>
> Signed-off-by: Dan Smith <danms at us.ibm.com>
>
> diff -r bd9472d3aa5f -r c19e32176690 instance_util.c
> --- a/instance_util.c Wed Feb 13 07:45:32 2008 -0800
> +++ b/instance_util.c Wed Feb 13 07:45:33 2008 -0800
> @@ -234,7 +234,7 @@ CMPIInstance *cu_dup_instance(const CMPI
>
> for (i = 0; i < prop_count; i++) {
> CMPIString *prop;
> - char *prop_name;
> + const char *prop_name;
>
> data = CMGetPropertyAt(src, i, &prop, s);
> prop_name = CMGetCharPtr(prop);
Since we're getting the value for prop_name from the CIMOM, this const
here makes sense. +1
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list