Skip to contentSkip to conversation

PATCH?: console.c warning

Qemu-devel Pavel Janík 1 participant 1 message Sep 14, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

why compiling console.c, I get:

/home/pavel/QEMU/qemu-cvs/console.c:707: warning: assignment from incompatible pointer type

I solved it in my tree with this:

vl.h renamed from vl.h.~1.52.~ +1 -1
@@ -188,7 +188,7 @@
                                  IOCanRWHandler *fd_can_read, 
                                  IOReadHandler *fd_read, void *opaque);
     IOEventHandler *chr_event;
-    IOEventHandler *chr_send_event;
+    void (*chr_send_event) (struct CharDriverState *s, int event);
     void *opaque;
 } CharDriverState;
 

Is this correct solution?

Signature · 4 lines
Pavel Janík

You're right, this should be fixed. Do you happen to have a patch?
                  -- Rik van Riel in linux-kernel about VM bug