From 610ae59fcc64ff0d15b3982f4b181727cba0c8d4 Mon Sep 17 00:00:00 2001 From: Osier Yang Date: Tue, 21 May 2013 15:21:19 +0800 Subject: [PATCH] src/nwfilter: Remove the whitespace before ';' --- src/nwfilter/nwfilter_dhcpsnoop.c | 6 +++--- src/nwfilter/nwfilter_driver.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/nwfilter/nwfilter_dhcpsnoop.c b/src/nwfilter/nwfilter_dhcpsnoop.c index 328f90ec98..b9921e5aeb 100644 --- a/src/nwfilter/nwfilter_dhcpsnoop.c +++ b/src/nwfilter/nwfilter_dhcpsnoop.c @@ -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 diff --git a/src/nwfilter/nwfilter_driver.c b/src/nwfilter/nwfilter_driver.c index 64ea251d89..19febfc3a5 100644 --- a/src/nwfilter/nwfilter_driver.c +++ b/src/nwfilter/nwfilter_driver.c @@ -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,