]> git.proxmox.com Git - qemu.git/blobdiff - qemu-char.c
Replace most gcc format attributes by macro GCC_FMT_ATTR (format checking)
[qemu.git] / qemu-char.c
index 6a3952ccdf9803dd13185a891ca8ebf3b41fe7f3..6d2dce7a9b42760ebb8819becd1e25b2ac9303ea 100644 (file)
@@ -2087,11 +2087,12 @@ static void tcp_chr_read(void *opaque)
     }
 }
 
-CharDriverState *qemu_chr_open_eventfd(int eventfd){
-
+#ifndef _WIN32
+CharDriverState *qemu_chr_open_eventfd(int eventfd)
+{
     return qemu_chr_open_fd(eventfd, eventfd);
-
 }
+#endif
 
 static void tcp_chr_connect(void *opaque)
 {
@@ -2285,7 +2286,7 @@ QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename)
     const char *p;
     QemuOpts *opts;
 
-    opts = qemu_opts_create(&qemu_chardev_opts, label, 1);
+    opts = qemu_opts_create(qemu_find_opts("chardev"), label, 1);
     if (NULL == opts)
         return NULL;