src/nwfilter: Remove the whitespace before ';'

This commit is contained in:
Osier Yang 2013-05-21 15:21:19 +08:00
parent 7b2014a644
commit 610ae59fcc
2 changed files with 6 additions and 6 deletions

View File

@ -29,13 +29,13 @@
/*
* Note about testing:
* 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:
* 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:
* 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:
* ebtables -t nat -L

View File

@ -452,7 +452,7 @@ nwfilterConnectListNWFilters(virConnectPtr conn,
int got = 0, i;
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]);
if (VIR_STRDUP(names[got], driver->nwfilters.objs[i]->def->name) < 0) {
virNWFilterObjUnlock(driver->nwfilters.objs[i]);
@ -466,7 +466,7 @@ nwfilterConnectListNWFilters(virConnectPtr conn,
cleanup:
nwfilterDriverUnlock(driver);
for (i = 0 ; i < got ; i++)
for (i = 0; i < got; i++)
VIR_FREE(names[i]);
memset(names, 0, nnames * sizeof(*names));
return -1;
@ -499,7 +499,7 @@ nwfilterConnectListAllNWFilters(virConnectPtr conn,
goto cleanup;
}
for (i = 0 ; i < driver->nwfilters.count; i++) {
for (i = 0; i < driver->nwfilters.count; i++) {
obj = driver->nwfilters.objs[i];
virNWFilterObjLock(obj);
if (!(filter = virGetNWFilter(conn, obj->def->name,