
30 Nov
2007
30 Nov
'07
5:11 p.m.
Dan Smith wrote:
KR> + s = get_host_cs(_BROKER, ref, &inst); KR> + if (s.rc != CMPI_RC_OK) KR> + goto out; KR> + KR> + if (cu_get_str_prop(inst, "Name", &hostname) != CMPI_RC_OK) KR> + goto out;
It's even cleaner this way, right? :)
With the recent API change, you don't even have to free something, which I think is pretty nifty.
Definitely much cleaner, and also the right thing to do. =) -- Kaitlin Rupert IBM Linux Technology Center karupert@us.ibm.com