Skip to contentSkip to conversation

fix chardev_init for win32

PATCH Applied TeLeMan 2 participants 2 messages Apr 15, 2010 – May 18, 2010

lore
Share & tools
lore

TeLeMan

author
#0 lore raw

PATCH 1/1 fix chardev_init for win32

chardev_init functions use socket,so socket_init() shoud be placed at the front of chardev_init on win32.

---
 vl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
vl.c +2 -2
index 460e050..96835e2 100644
@@ -3468,6 +3468,8 @@ int main(int argc, char **argv, char **envp)
     if (default_vga)
         vga_interface_type = VGA_CIRRUS;
 
+    socket_init();
+
     if (qemu_opts_foreach(&qemu_chardev_opts, chardev_init_func, NULL, 1) != 0)
         exit(1);
 
@@ -3569,8 +3571,6 @@ int main(int argc, char **argv, char **envp)
     }
     configure_icount(icount_option);
 
-    socket_init();
-
     if (net_init_clients() < 0) {
         exit(1);
     }
Signature · 3 lines
1.6.5.1.1367.gcd48
--
SUN OF A BEACH
#1 lore raw
Quoted 7 lines · TeLeMan

chardev_init functions use socket,so socket_init() shoud be placed at the front of chardev_init on win32.

---
 vl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Thanks, applied.

Quoted 29 lines
vl.c +2 -2
index 460e050..96835e2 100644
@@ -3468,6 +3468,8 @@ int main(int argc, char **argv, char **envp)
     if (default_vga)
         vga_interface_type = VGA_CIRRUS;
 
+    socket_init();
+
     if (qemu_opts_foreach(&qemu_chardev_opts, chardev_init_func, NULL, 1) != 0)
         exit(1);
 
@@ -3569,8 +3571,6 @@ int main(int argc, char **argv, char **envp)
     }
     configure_icount(icount_option);
 
-    socket_init();
-
     if (net_init_clients() < 0) {
         exit(1);
     }
Signature · 3 lines
1.6.5.1.1367.gcd48
--
SUN OF A BEACH
Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net