]> git.proxmox.com Git - qemu.git/blobdiff - iohandler.c
janitor: do not include qemu-char everywhere
[qemu.git] / iohandler.c
index dea43552d2a37fd4d52cd58a8332694aeaf98d9f..258f42d8d215f1387b41e21e81f71ca9fcee6817 100644 (file)
@@ -24,8 +24,8 @@
 
 #include "config-host.h"
 #include "qemu-common.h"
-#include "qemu-char.h"
 #include "qemu-queue.h"
+#include "qemu-aio.h"
 #include "main-loop.h"
 
 #ifndef _WIN32
@@ -56,6 +56,8 @@ int qemu_set_fd_handler2(int fd,
 {
     IOHandlerRecord *ioh;
 
+    assert(fd >= 0);
+
     if (!fd_read && !fd_write) {
         QLIST_FOREACH(ioh, &io_handlers, next) {
             if (ioh->fd == fd) {