mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
src/parallels: Remove the whitespace before ';'
This commit is contained in:
parent
f23c87a711
commit
e6d0168c3a
@ -366,7 +366,7 @@ static int parallelsConnectNumOfNetworks(virConnectPtr conn)
|
|||||||
parallelsConnPtr privconn = conn->privateData;
|
parallelsConnPtr privconn = conn->privateData;
|
||||||
|
|
||||||
parallelsDriverLock(privconn);
|
parallelsDriverLock(privconn);
|
||||||
for (i = 0 ; i < privconn->networks.count ; i++) {
|
for (i = 0; i < privconn->networks.count; i++) {
|
||||||
virNetworkObjLock(privconn->networks.objs[i]);
|
virNetworkObjLock(privconn->networks.objs[i]);
|
||||||
if (virNetworkObjIsActive(privconn->networks.objs[i]))
|
if (virNetworkObjIsActive(privconn->networks.objs[i]))
|
||||||
nactive++;
|
nactive++;
|
||||||
@ -385,7 +385,7 @@ static int parallelsConnectListNetworks(virConnectPtr conn,
|
|||||||
int got = 0, i;
|
int got = 0, i;
|
||||||
|
|
||||||
parallelsDriverLock(privconn);
|
parallelsDriverLock(privconn);
|
||||||
for (i = 0 ; i < privconn->networks.count && got < nnames ; i++) {
|
for (i = 0; i < privconn->networks.count && got < nnames; i++) {
|
||||||
virNetworkObjLock(privconn->networks.objs[i]);
|
virNetworkObjLock(privconn->networks.objs[i]);
|
||||||
if (virNetworkObjIsActive(privconn->networks.objs[i])) {
|
if (virNetworkObjIsActive(privconn->networks.objs[i])) {
|
||||||
if (VIR_STRDUP(names[got], privconn->networks.objs[i]->def->name) < 0) {
|
if (VIR_STRDUP(names[got], privconn->networks.objs[i]->def->name) < 0) {
|
||||||
@ -402,7 +402,7 @@ static int parallelsConnectListNetworks(virConnectPtr conn,
|
|||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
parallelsDriverUnlock(privconn);
|
parallelsDriverUnlock(privconn);
|
||||||
for (i = 0 ; i < got ; i++)
|
for (i = 0; i < got; i++)
|
||||||
VIR_FREE(names[i]);
|
VIR_FREE(names[i]);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -413,7 +413,7 @@ static int parallelsConnectNumOfDefinedNetworks(virConnectPtr conn)
|
|||||||
parallelsConnPtr privconn = conn->privateData;
|
parallelsConnPtr privconn = conn->privateData;
|
||||||
|
|
||||||
parallelsDriverLock(privconn);
|
parallelsDriverLock(privconn);
|
||||||
for (i = 0 ; i < privconn->networks.count ; i++) {
|
for (i = 0; i < privconn->networks.count; i++) {
|
||||||
virNetworkObjLock(privconn->networks.objs[i]);
|
virNetworkObjLock(privconn->networks.objs[i]);
|
||||||
if (!virNetworkObjIsActive(privconn->networks.objs[i]))
|
if (!virNetworkObjIsActive(privconn->networks.objs[i]))
|
||||||
ninactive++;
|
ninactive++;
|
||||||
@ -432,7 +432,7 @@ static int parallelsConnectListDefinedNetworks(virConnectPtr conn,
|
|||||||
int got = 0, i;
|
int got = 0, i;
|
||||||
|
|
||||||
parallelsDriverLock(privconn);
|
parallelsDriverLock(privconn);
|
||||||
for (i = 0 ; i < privconn->networks.count && got < nnames ; i++) {
|
for (i = 0; i < privconn->networks.count && got < nnames; i++) {
|
||||||
virNetworkObjLock(privconn->networks.objs[i]);
|
virNetworkObjLock(privconn->networks.objs[i]);
|
||||||
if (!virNetworkObjIsActive(privconn->networks.objs[i])) {
|
if (!virNetworkObjIsActive(privconn->networks.objs[i])) {
|
||||||
if (VIR_STRDUP(names[got], privconn->networks.objs[i]->def->name) < 0) {
|
if (VIR_STRDUP(names[got], privconn->networks.objs[i]->def->name) < 0) {
|
||||||
@ -448,7 +448,7 @@ static int parallelsConnectListDefinedNetworks(virConnectPtr conn,
|
|||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
parallelsDriverUnlock(privconn);
|
parallelsDriverUnlock(privconn);
|
||||||
for (i = 0 ; i < got ; i++)
|
for (i = 0; i < got; i++)
|
||||||
VIR_FREE(names[i]);
|
VIR_FREE(names[i]);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user