summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-03-15 14:20:54 +0100
committerAurelien Jarno <aurelien@aurel32.net>2011-04-01 22:32:27 +0200
commitac60cc18711a9786af9844d7e3d002276fbd85f3 (patch)
treee89eb4de973ecf7014f963379544f5f9179696c7 /net.c
parentee7495d3a9304942ad75f07713b565db25352411 (diff)
Fix net_check_clients warnings: make it per vlan.
Signed-off-by: Tristan Gingold <gingold@adacore.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'net.c')
-rw-r--r--net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net.c b/net.c
index ddcca9752..b2dfaa808 100644
--- a/net.c
+++ b/net.c
@@ -1305,9 +1305,10 @@ void net_check_clients(void)
{
VLANState *vlan;
VLANClientState *vc;
- int has_nic = 0, has_host_dev = 0;
QTAILQ_FOREACH(vlan, &vlans, next) {
+ int has_nic = 0, has_host_dev = 0;
+
QTAILQ_FOREACH(vc, &vlan->clients, next) {
switch (vc->info->type) {
case NET_CLIENT_TYPE_NIC: