]> Git Repo - qemu.git/commitdiff
Fix Windows build failure, by Stefan Weil.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 26 Oct 2007 17:21:58 +0000 (17:21 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 26 Oct 2007 17:21:58 +0000 (17:21 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3450 c046a42c-6fe2-441c-8c8c-71466251a162

vl.c

diff --git a/vl.c b/vl.c
index 2f3d8d04ed8a96b1846dc2fa66528fe81adac53a..094afb31966bf298aae3d9e855825999aa479903 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -8478,12 +8478,12 @@ int main(int argc, char **argv)
     main_loop();
     quit_timers();
 
+#if !defined(_WIN32)
     /* close network clients */
     for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {
         VLANClientState *vc;
 
-        for(vc = vlan->first_client; vc != NULL; vc = vc->next)
-#if !defined(_WIN32)
+        for(vc = vlan->first_client; vc != NULL; vc = vc->next) {
             if (vc->fd_read == tap_receive) {
                 char ifname[64];
                 TAPState *s = vc->opaque;
@@ -8492,7 +8492,8 @@ int main(int argc, char **argv)
                     s->down_script[0])
                     launch_script(s->down_script, ifname, s->fd);
             }
-#endif
     }
+    }
+#endif
     return 0;
 }
This page took 0.035267 seconds and 4 git commands to generate.