mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
src/nwfilter: Remove the whitespace before ';'
This commit is contained in:
parent
7b2014a644
commit
610ae59fcc
@ -29,13 +29,13 @@
|
|||||||
/*
|
/*
|
||||||
* Note about testing:
|
* Note about testing:
|
||||||
* On the host run in a shell:
|
* On the host run in a shell:
|
||||||
* while :; do kill -SIGHUP `pidof libvirtd` ; echo "HUP $RANDOM"; sleep 20; done
|
* while :; do kill -SIGHUP `pidof libvirtd`; echo "HUP $RANDOM"; sleep 20; done
|
||||||
*
|
*
|
||||||
* Inside a couple of VMs that for example use the 'clean-traffic' filter:
|
* Inside a couple of VMs that for example use the 'clean-traffic' filter:
|
||||||
* while :; do kill -SIGTERM `pidof dhclient`; dhclient eth0 ; ifconfig eth0; done
|
* while :; do kill -SIGTERM `pidof dhclient`; dhclient eth0; ifconfig eth0; done
|
||||||
*
|
*
|
||||||
* On the host check the lease file and that it's periodically shortened:
|
* On the host check the lease file and that it's periodically shortened:
|
||||||
* cat /var/run/libvirt/network/nwfilter.leases ; date +%s
|
* cat /var/run/libvirt/network/nwfilter.leases; date +%s
|
||||||
*
|
*
|
||||||
* On the host also check that the ebtables rules 'look' ok:
|
* On the host also check that the ebtables rules 'look' ok:
|
||||||
* ebtables -t nat -L
|
* ebtables -t nat -L
|
||||||
|
@ -452,7 +452,7 @@ nwfilterConnectListNWFilters(virConnectPtr conn,
|
|||||||
int got = 0, i;
|
int got = 0, i;
|
||||||
|
|
||||||
nwfilterDriverLock(driver);
|
nwfilterDriverLock(driver);
|
||||||
for (i = 0 ; i < driver->nwfilters.count && got < nnames ; i++) {
|
for (i = 0; i < driver->nwfilters.count && got < nnames; i++) {
|
||||||
virNWFilterObjLock(driver->nwfilters.objs[i]);
|
virNWFilterObjLock(driver->nwfilters.objs[i]);
|
||||||
if (VIR_STRDUP(names[got], driver->nwfilters.objs[i]->def->name) < 0) {
|
if (VIR_STRDUP(names[got], driver->nwfilters.objs[i]->def->name) < 0) {
|
||||||
virNWFilterObjUnlock(driver->nwfilters.objs[i]);
|
virNWFilterObjUnlock(driver->nwfilters.objs[i]);
|
||||||
@ -466,7 +466,7 @@ nwfilterConnectListNWFilters(virConnectPtr conn,
|
|||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
nwfilterDriverUnlock(driver);
|
nwfilterDriverUnlock(driver);
|
||||||
for (i = 0 ; i < got ; i++)
|
for (i = 0; i < got; i++)
|
||||||
VIR_FREE(names[i]);
|
VIR_FREE(names[i]);
|
||||||
memset(names, 0, nnames * sizeof(*names));
|
memset(names, 0, nnames * sizeof(*names));
|
||||||
return -1;
|
return -1;
|
||||||
@ -499,7 +499,7 @@ nwfilterConnectListAllNWFilters(virConnectPtr conn,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0 ; i < driver->nwfilters.count; i++) {
|
for (i = 0; i < driver->nwfilters.count; i++) {
|
||||||
obj = driver->nwfilters.objs[i];
|
obj = driver->nwfilters.objs[i];
|
||||||
virNWFilterObjLock(obj);
|
virNWFilterObjLock(obj);
|
||||||
if (!(filter = virGetNWFilter(conn, obj->def->name,
|
if (!(filter = virGetNWFilter(conn, obj->def->name,
|
||||||
|
Loading…
Reference in New Issue
Block a user