Received: from [140.186.70.92] (port=58175 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pzkms-0007ev-6Q for qemu-devel@nongnu.org; Wed, 16 Mar 2011 03:04:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pzkmr-0001Ow-7A for qemu-devel@nongnu.org; Wed, 16 Mar 2011 03:04:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pzkmq-0001Nv-R1 for qemu-devel@nongnu.org; Wed, 16 Mar 2011 03:04:53 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH] Fix net_check_clients warnings: make it per vlan. References: <1300195254-52519-1-git-send-email-gingold@adacore.com> Date: Wed, 16 Mar 2011 08:04:36 +0100 In-Reply-To: <1300195254-52519-1-git-send-email-gingold@adacore.com> (Tristan Gingold's message of "Tue, 15 Mar 2011 14:20:54 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tristan Gingold Cc: qemu-devel@nongnu.org Tristan Gingold writes: > Signed-off-by: Tristan Gingold > --- > net.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/net.c b/net.c > index ddcca97..b2dfaa8 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: Screwed up in commit 62112d18 by yours truly, and papered over in commit 64e69d50 by Blue. Reviewed-by: Markus Armbruster