summary refs log tree commit diff stats
path: root/vl.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-26 17:21:58 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-26 17:21:58 +0000
commit7d294b61edc6bd1be15739a11dce1414080dbb9b (patch)
treee692ab151418a2e5f14221340346bd27a349f3e0 /vl.c
parentf0685f6e7a4179e75c4696de88de9657c6a86e95 (diff)
downloadfocaccia-qemu-7d294b61edc6bd1be15739a11dce1414080dbb9b.tar.gz
focaccia-qemu-7d294b61edc6bd1be15739a11dce1414080dbb9b.zip
Fix Windows build failure, by Stefan Weil.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3450 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/vl.c b/vl.c
index 2f3d8d04ed..094afb3196 100644
--- 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;
 }