提交 610ae59f 编写于 作者: O Osier Yang

src/nwfilter: Remove the whitespace before ';'

上级 7b2014a6
......@@ -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
......
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册