mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
chardev: mark explicitly first argument as poisoned
Since commit 9894dc0cdc
"char: convert
from GIOChannel to QIOChannel", the first argument to the watch callback
can actually be a QIOChannel, which is not a GIOChannel (but a QEMU
Object).
Even though we never used that pointer, change the callback type to warn
the users. Possibly a better fix later, we may want to store the
callback and call it from intermediary functions.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
30f80be34b
commit
bf7b1eab25
12 changed files with 19 additions and 13 deletions
|
@ -208,8 +208,8 @@ static NetClientInfo net_vhost_user_info = {
|
|||
.set_vnet_le = vhost_user_set_vnet_endianness,
|
||||
};
|
||||
|
||||
static gboolean net_vhost_user_watch(GIOChannel *chan, GIOCondition cond,
|
||||
void *opaque)
|
||||
static gboolean net_vhost_user_watch(void *do_not_use, GIOCondition cond,
|
||||
void *opaque)
|
||||
{
|
||||
NetVhostUserState *s = opaque;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue