projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7fdc35
)
Fix net_check_clients warnings: make it per vlan.
author
Tristan Gingold
<gingold@adacore.com>
Tue, 15 Mar 2011 13:20:54 +0000
(14:20 +0100)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Fri, 1 Apr 2011 20:32:27 +0000
(22:32 +0200)
Signed-off-by: Tristan Gingold <gingold@adacore.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
net.c
patch
|
blob
|
history
diff --git
a/net.c
b/net.c
index ddcca9752d8df0cdaa8aab0ca2eb8f818df24989..b2dfaa8085c1273c0bff39f62c6edf26c4afaf41 100644
(file)
--- 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: