Fix the whitespace in xs_internal.c xenStoreLookupByName function. Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903
diff -urN --exclude=CVS --exclude=.git --exclude='*.pem' --exclude=demoCA --exclude=.gitignore --exclude='*.orig' --exclude='*.bak' libvirt-domain-lookup-1/src/xs_internal.c libvirt-domain-lookup-2/src/xs_internal.c --- libvirt-domain-lookup-1/src/xs_internal.c 2007-07-03 11:21:59.000000000 +0100 +++ libvirt-domain-lookup-2/src/xs_internal.c 2007-07-03 14:41:21.000000000 +0100 @@ -625,23 +616,23 @@ goto done; for (i = 0; i < num; i++) { - id = strtol(idlist[i], &endptr, 10); - if ((endptr == idlist[i]) || (*endptr != 0)) { - goto done; - } + id = strtol(idlist[i], &endptr, 10); + if ((endptr == idlist[i]) || (*endptr != 0)) { + goto done; + } #if 0 - if (virConnectCheckStoreID(conn, (int) id) < 0) - continue; + if (virConnectCheckStoreID(conn, (int) id) < 0) + continue; #endif - snprintf(prop, 199, "/local/domain/%s/name", idlist[i]); - prop[199] = 0; - tmp = xs_read(priv->xshandle, 0, prop, &len); - if (tmp != NULL) { - found = !strcmp(name, tmp); - free(tmp); - if (found) - break; - } + snprintf(prop, 199, "/local/domain/%s/name", idlist[i]); + prop[199] = 0; + tmp = xs_read(priv->xshandle, 0, prop, &len); + if (tmp != NULL) { + found = STREQ (name, tmp); + free(tmp); + if (found) + break; + } } path = xs_get_domain_path(priv->xshandle, (unsigned int) id); @@ -651,9 +642,9 @@ ret = virGetDomain(conn, name, NULL); if (ret == NULL) { virXenStoreError(conn, VIR_ERR_NO_MEMORY, _("allocating domain")); - if (path != NULL) - free(path); - goto done; + if (path != NULL) + free(path); + goto done; } ret->id = id;
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
-- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list