]> git.proxmox.com Git - qemu.git/blobdiff - readline.c
Introduce a 'client_add' monitor command accepting an open FD
[qemu.git] / readline.c
index 9c500f1fec3661e3b473af3232ec0fed90e88941..92f9cd1569a657a10f0a9c1e2177ca522d5c6a3c 100644 (file)
@@ -28,6 +28,7 @@
 #define IS_ESC  1
 #define IS_CSI  2
 
+#undef printf
 #define printf do_not_use_printf
 
 void readline_show_prompt(ReadLineState *rs)
@@ -467,9 +468,6 @@ ReadLineState *readline_init(Monitor *mon,
 {
     ReadLineState *rs = qemu_mallocz(sizeof(*rs));
 
-    if (!rs)
-        return NULL;
-
     rs->hist_entry = -1;
     rs->mon = mon;
     rs->completion_finder = completion_finder;