mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 15:52:55 +00:00
maint: fix comma style issues: remaining drivers
Most of our code base uses space after comma but not before; fix the remaining uses before adding a syntax check. * src/lxc/lxc_container.c: Consistently use commas. * src/openvz/openvz_driver.c: Likewise. * src/openvz/openvz_util.c: Likewise. * src/remote/remote_driver.c: Likewise. * src/test/test_driver.c: Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
eeed3bc63c
commit
64b2335c2a
@ -483,7 +483,7 @@ error_out:
|
|||||||
|
|
||||||
|
|
||||||
/*_syscall2(int, pivot_root, char *, newroot, const char *, oldroot)*/
|
/*_syscall2(int, pivot_root, char *, newroot, const char *, oldroot)*/
|
||||||
extern int pivot_root(const char * new_root,const char * put_old);
|
extern int pivot_root(const char * new_root, const char * put_old);
|
||||||
|
|
||||||
static int lxcContainerChildMountSort(const void *a, const void *b)
|
static int lxcContainerChildMountSort(const void *a, const void *b)
|
||||||
{
|
{
|
||||||
|
@ -1280,7 +1280,7 @@ openvzDomainGetAutostart(virDomainPtr dom, int *autostart)
|
|||||||
}
|
}
|
||||||
|
|
||||||
*autostart = 0;
|
*autostart = 0;
|
||||||
if (STREQ(value,"yes"))
|
if (STREQ(value, "yes"))
|
||||||
*autostart = 1;
|
*autostart = 1;
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
@ -1523,7 +1523,7 @@ static int openvzConnectListDomains(virConnectPtr conn ATTRIBUTE_UNUSED,
|
|||||||
int ret;
|
int ret;
|
||||||
char buf[32];
|
char buf[32];
|
||||||
char *endptr;
|
char *endptr;
|
||||||
virCommandPtr cmd = virCommandNewArgList(VZLIST, "-ovpsid", "-H" , NULL);
|
virCommandPtr cmd = virCommandNewArgList(VZLIST, "-ovpsid", "-H", NULL);
|
||||||
|
|
||||||
virCommandSetOutputFD(cmd, &outfd);
|
virCommandSetOutputFD(cmd, &outfd);
|
||||||
if (virCommandRunAsync(cmd, NULL) < 0)
|
if (virCommandRunAsync(cmd, NULL) < 0)
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* openvz_driver.c: core driver methods for managing OpenVZ VEs
|
* openvz_driver.c: core driver methods for managing OpenVZ VEs
|
||||||
*
|
*
|
||||||
|
* Copyright (C) 2013 Red Hat, Inc.
|
||||||
* Copyright (C) 2012 Guido Günther
|
* Copyright (C) 2012 Guido Günther
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@ -64,7 +65,7 @@ openvzVEGetStringParam(virDomainPtr domain, const char* param)
|
|||||||
"-o",
|
"-o",
|
||||||
param,
|
param,
|
||||||
domain->name,
|
domain->name,
|
||||||
"-H" , NULL);
|
"-H", NULL);
|
||||||
|
|
||||||
virCommandSetOutputBuffer(cmd, &output);
|
virCommandSetOutputBuffer(cmd, &output);
|
||||||
if (virCommandRun(cmd, NULL) < 0) {
|
if (virCommandRun(cmd, NULL) < 0) {
|
||||||
|
@ -4484,7 +4484,7 @@ remoteDomainBuildEventIOErrorReason(virNetClientProgramPtr prog ATTRIBUTE_UNUSED
|
|||||||
virDomainPtr dom;
|
virDomainPtr dom;
|
||||||
virDomainEventPtr event = NULL;
|
virDomainEventPtr event = NULL;
|
||||||
|
|
||||||
dom = get_nonnull_domain(conn,msg->dom);
|
dom = get_nonnull_domain(conn, msg->dom);
|
||||||
if (!dom)
|
if (!dom)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* test.c: A "mock" hypervisor for use by application unit tests
|
* test.c: A "mock" hypervisor for use by application unit tests
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2012 Red Hat, Inc.
|
* Copyright (C) 2006-2013 Red Hat, Inc.
|
||||||
* Copyright (C) 2006 Daniel P. Berrange
|
* Copyright (C) 2006 Daniel P. Berrange
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@ -306,7 +306,7 @@ testBuildCapabilities(virConnectPtr conn) {
|
|||||||
|
|
||||||
if (virCapabilitiesAddHostFeature(caps, "pae") < 0)
|
if (virCapabilitiesAddHostFeature(caps, "pae") < 0)
|
||||||
goto error;
|
goto error;
|
||||||
if (virCapabilitiesAddHostFeature(caps ,"nonpae") < 0)
|
if (virCapabilitiesAddHostFeature(caps, "nonpae") < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
for (i = 0; i < privconn->numCells; i++) {
|
for (i = 0; i < privconn->numCells; i++) {
|
||||||
@ -344,7 +344,7 @@ testBuildCapabilities(virConnectPtr conn) {
|
|||||||
|
|
||||||
if (virCapabilitiesAddGuestFeature(guest, "pae", 1, 1) == NULL)
|
if (virCapabilitiesAddGuestFeature(guest, "pae", 1, 1) == NULL)
|
||||||
goto error;
|
goto error;
|
||||||
if (virCapabilitiesAddGuestFeature(guest ,"nonpae", 1, 1) == NULL)
|
if (virCapabilitiesAddGuestFeature(guest, "nonpae", 1, 1) == NULL)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1620,7 +1620,7 @@ testDomainCreateXML(virConnectPtr conn, const char *xml,
|
|||||||
virCheckFlags(0, NULL);
|
virCheckFlags(0, NULL);
|
||||||
|
|
||||||
testDriverLock(privconn);
|
testDriverLock(privconn);
|
||||||
if ((def = virDomainDefParseString(xml,privconn->caps, privconn->xmlopt,
|
if ((def = virDomainDefParseString(xml, privconn->caps, privconn->xmlopt,
|
||||||
1 << VIR_DOMAIN_VIRT_TEST,
|
1 << VIR_DOMAIN_VIRT_TEST,
|
||||||
VIR_DOMAIN_XML_INACTIVE)) == NULL)
|
VIR_DOMAIN_XML_INACTIVE)) == NULL)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
@ -2598,7 +2598,7 @@ static int testDomainGetVcpus(virDomainPtr domain,
|
|||||||
|
|
||||||
if (!virDomainObjIsActive(privdom)) {
|
if (!virDomainObjIsActive(privdom)) {
|
||||||
virReportError(VIR_ERR_OPERATION_INVALID,
|
virReportError(VIR_ERR_OPERATION_INVALID,
|
||||||
"%s",_("cannot list vcpus for an inactive domain"));
|
"%s", _("cannot list vcpus for an inactive domain"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2685,7 +2685,7 @@ static int testDomainPinVcpu(virDomainPtr domain,
|
|||||||
|
|
||||||
if (!virDomainObjIsActive(privdom)) {
|
if (!virDomainObjIsActive(privdom)) {
|
||||||
virReportError(VIR_ERR_OPERATION_INVALID,
|
virReportError(VIR_ERR_OPERATION_INVALID,
|
||||||
"%s",_("cannot pin vcpus on an inactive domain"));
|
"%s", _("cannot pin vcpus on an inactive domain"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user