From ac60cc18711a9786af9844d7e3d002276fbd85f3 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 15 Mar 2011 14:20:54 +0100 Subject: Fix net_check_clients warnings: make it per vlan. Signed-off-by: Tristan Gingold Reviewed-by: Markus Armbruster Signed-off-by: Aurelien Jarno --- net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net.c') diff --git a/net.c b/net.c index ddcca9752d..b2dfaa8085 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: -- cgit v1.2.1