aboutsummaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-02-11 14:44:58 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-02-19 12:12:46 -0600
commit668680f75feea79704c603b96126c0833e1ed9a9 (patch)
treed51d88551caf4463988ecb16af7d842559618ed2 /net.c
parent7f76abe1c9d880050ba31ff827b3ff5cbc8175a7 (diff)
downloadqemu-668680f75feea79704c603b96126c0833e1ed9a9.zip
qemu-668680f75feea79704c603b96126c0833e1ed9a9.tar.gz
qemu-668680f75feea79704c603b96126c0833e1ed9a9.tar.bz2
net: net_check_clients() runs too early to see -device, fix
Call it right after -device devices get created. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.c')
-rw-r--r--net.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net.c b/net.c
index f51d376..38b65f4 100644
--- a/net.c
+++ b/net.c
@@ -1275,7 +1275,7 @@ void net_cleanup(void)
}
}
-static void net_check_clients(void)
+void net_check_clients(void)
{
VLANState *vlan;
@@ -1323,8 +1323,6 @@ int net_init_clients(void)
return -1;
}
- net_check_clients();
-
return 0;
}