[Libvirt-cim] [PATCH] Set additional attribute values in Virt_ComputerSystem.c

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Mon Feb 4 16:27:51 UTC 2008


Dan Smith wrote:
> This is a style thing, I guess, but wouldn't it be easier to combine
> this function with the one that sets the descriptions?  You could loop
> through both string arrays at the same time and construct the two
> CMPIArrays together.  The two functions are almost identical, so I
> think doing them together would add six lines to the above function
> instead of the 30 it takes for the separate function.


Good suggestion - much cleaner as one function.

> ...and then again here.
> 
> KR> +        }
> KR> +
> KR>          /* More attributes here, of course */
> KR> +
> KR> +        free(uuid);
> 
> KR>          return 1;
> KR>  }
> 
> Can we get either an "err:" target or a return variable and an "out:"
> target please? :)
> 

Yep - will send a new patch with this issue cleaned up.


-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list