1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-10 05:17:59 +03:00

Whiteclean/indentation cleanup/fixup. No functional change

This commit is contained in:
Daniel P. Berrange 2007-02-07 13:50:18 +00:00
parent 4a89182077
commit 85535863c5
2 changed files with 416 additions and 408 deletions

View File

@ -203,7 +203,7 @@ static virDomainPtr vshCommandOptDomainBy(vshControl * ctl, vshCmd * cmd,
/* default is lookup by Id, Name and UUID */
#define vshCommandOptDomain(_ctl, _cmd, _optname, _name) \
vshCommandOptDomainBy(_ctl, _cmd, _optname, _name,\
vshCommandOptDomainBy(_ctl, _cmd, _optname, _name, \
VSH_DOMBYID|VSH_DOMBYUUID|VSH_DOMBYNAME)
static void vshPrintExtra(vshControl * ctl, const char *format, ...);
@ -2897,3 +2897,11 @@ main(int argc, char **argv)
* vim: set shiftwidth=4:
* vim: set expandtab:
*/
/*
* Local variables:
* indent-tabs-mode: nil
* c-indent-level: 4
* c-basic-offset: 4
* tab-width: 4
* End:
*/

View File

@ -549,7 +549,7 @@ virDomainGetXMLDesc(virDomainPtr domain, int flags)
virDomainGetName(domain));
if (virDomainGetUUID(domain, &uuid[0]) == 0) {
virBufferVSprintf(&buf,
" <uuid>%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x</uuid>\n",
" <uuid>%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x</uuid>\n",
uuid[0], uuid[1], uuid[2], uuid[3],
uuid[4], uuid[5], uuid[6], uuid[7],
uuid[8], uuid[9], uuid[10], uuid[11],
@ -877,7 +877,7 @@ virDomainParseXMLOSDescHVM(xmlNodePtr node, virBufferPtr buf, xmlXPathContextPtr
xmlFree(boot_dev);
return (0);
error:
error:
if (boot_dev)
xmlFree(boot_dev);
if (obj != NULL)
@ -1585,7 +1585,7 @@ unsigned char *virParseUUID(char **ptr, const char *uuid) {
for (i = 0; i < VIR_UUID_BUFLEN; i++)
dst_uuid[i] = rawuuid[i] & 0xFF;
error:
error:
return(dst_uuid);
}
@ -1632,11 +1632,11 @@ virParseXMLDevice(char *xmldesc, int hvm, int xendConfigVersion)
if (virDomainParseXMLIfDesc(node, &buf, hvm) != 0)
goto error;
}
cleanup:
cleanup:
if (xml != NULL)
xmlFreeDoc(xml);
return buf.content;
error:
error:
free(buf.content);
buf.content = NULL;
goto cleanup;
@ -1705,9 +1705,9 @@ virDomainXMLDevID(virDomainPtr domain, char *xmldesc, char *class, char *ref)
goto error;
}
}
error:
error:
ret = -1;
cleanup:
cleanup:
if (xml != NULL)
xmlFreeDoc(xml);
if (attr != NULL)