[Libvirt-cim] [PATCH 1 of 3] Fix issue with VSMC enum

Dan Smith danms at us.ibm.com
Fri Nov 30 15:08:28 UTC 2007


KR> # HG changeset patch
KR> # User Kaitlin Rupert <karupert at us.ibm.com>
KR> # Date 1196370791 28800
KR> # Node ID f849a60bc19bfabb37ef2f9184c88d5200cc3ee7
KR> # Parent  c478a5b30689a80159588c8f914ac97263694372
KR> Fix issue with VSMC enum.

Thanks, applied.

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.

-- 
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/20071130/ffb3b64b/attachment.sig>


More information about the Libvirt-cim mailing list