[Libosinfo] [PATCH v2 3/4] osinfo_loader: replace some xpath queries with direct data access

Eric Blake eblake at redhat.com
Tue Jun 3 18:38:19 UTC 2014


On 06/03/2014 12:19 PM, Giuseppe Scrivano wrote:
> Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
> ---

> -    for (i = 0 ; i < nrelated ; i++) {
> -        gchar *id = (gchar *)xmlGetProp(related[i], BAD_CAST "id");
> +    for(it = root->children; it; it = it->next) {

Style nit - isn't there supposed to be a space after 'for' ?


-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20140603/0c01a40a/attachment.sig>


More information about the Libosinfo mailing list