mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Whiteclean/indentation cleanup/fixup. No functional change
This commit is contained in:
parent
4a89182077
commit
85535863c5
10
src/virsh.c
10
src/virsh.c
@ -203,7 +203,7 @@ static virDomainPtr vshCommandOptDomainBy(vshControl * ctl, vshCmd * cmd,
|
|||||||
|
|
||||||
/* default is lookup by Id, Name and UUID */
|
/* default is lookup by Id, Name and UUID */
|
||||||
#define vshCommandOptDomain(_ctl, _cmd, _optname, _name) \
|
#define vshCommandOptDomain(_ctl, _cmd, _optname, _name) \
|
||||||
vshCommandOptDomainBy(_ctl, _cmd, _optname, _name,\
|
vshCommandOptDomainBy(_ctl, _cmd, _optname, _name, \
|
||||||
VSH_DOMBYID|VSH_DOMBYUUID|VSH_DOMBYNAME)
|
VSH_DOMBYID|VSH_DOMBYUUID|VSH_DOMBYNAME)
|
||||||
|
|
||||||
static void vshPrintExtra(vshControl * ctl, const char *format, ...);
|
static void vshPrintExtra(vshControl * ctl, const char *format, ...);
|
||||||
@ -2897,3 +2897,11 @@ main(int argc, char **argv)
|
|||||||
* vim: set shiftwidth=4:
|
* vim: set shiftwidth=4:
|
||||||
* vim: set expandtab:
|
* vim: set expandtab:
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
|
* Local variables:
|
||||||
|
* indent-tabs-mode: nil
|
||||||
|
* c-indent-level: 4
|
||||||
|
* c-basic-offset: 4
|
||||||
|
* tab-width: 4
|
||||||
|
* End:
|
||||||
|
*/
|
||||||
|
14
src/xml.c
14
src/xml.c
@ -549,7 +549,7 @@ virDomainGetXMLDesc(virDomainPtr domain, int flags)
|
|||||||
virDomainGetName(domain));
|
virDomainGetName(domain));
|
||||||
if (virDomainGetUUID(domain, &uuid[0]) == 0) {
|
if (virDomainGetUUID(domain, &uuid[0]) == 0) {
|
||||||
virBufferVSprintf(&buf,
|
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[0], uuid[1], uuid[2], uuid[3],
|
||||||
uuid[4], uuid[5], uuid[6], uuid[7],
|
uuid[4], uuid[5], uuid[6], uuid[7],
|
||||||
uuid[8], uuid[9], uuid[10], uuid[11],
|
uuid[8], uuid[9], uuid[10], uuid[11],
|
||||||
@ -877,7 +877,7 @@ virDomainParseXMLOSDescHVM(xmlNodePtr node, virBufferPtr buf, xmlXPathContextPtr
|
|||||||
xmlFree(boot_dev);
|
xmlFree(boot_dev);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
error:
|
error:
|
||||||
if (boot_dev)
|
if (boot_dev)
|
||||||
xmlFree(boot_dev);
|
xmlFree(boot_dev);
|
||||||
if (obj != NULL)
|
if (obj != NULL)
|
||||||
@ -1585,7 +1585,7 @@ unsigned char *virParseUUID(char **ptr, const char *uuid) {
|
|||||||
for (i = 0; i < VIR_UUID_BUFLEN; i++)
|
for (i = 0; i < VIR_UUID_BUFLEN; i++)
|
||||||
dst_uuid[i] = rawuuid[i] & 0xFF;
|
dst_uuid[i] = rawuuid[i] & 0xFF;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
return(dst_uuid);
|
return(dst_uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1632,11 +1632,11 @@ virParseXMLDevice(char *xmldesc, int hvm, int xendConfigVersion)
|
|||||||
if (virDomainParseXMLIfDesc(node, &buf, hvm) != 0)
|
if (virDomainParseXMLIfDesc(node, &buf, hvm) != 0)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
cleanup:
|
cleanup:
|
||||||
if (xml != NULL)
|
if (xml != NULL)
|
||||||
xmlFreeDoc(xml);
|
xmlFreeDoc(xml);
|
||||||
return buf.content;
|
return buf.content;
|
||||||
error:
|
error:
|
||||||
free(buf.content);
|
free(buf.content);
|
||||||
buf.content = NULL;
|
buf.content = NULL;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
@ -1705,9 +1705,9 @@ virDomainXMLDevID(virDomainPtr domain, char *xmldesc, char *class, char *ref)
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
error:
|
error:
|
||||||
ret = -1;
|
ret = -1;
|
||||||
cleanup:
|
cleanup:
|
||||||
if (xml != NULL)
|
if (xml != NULL)
|
||||||
xmlFreeDoc(xml);
|
xmlFreeDoc(xml);
|
||||||
if (attr != NULL)
|
if (attr != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user