mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 18:37:34 +00:00
Be consistent with opaque type
vdi_port_read_buf_release is registered passing data as RedVDIReadBuf*, not RedPipeItem*. Cast opaque to proper pointer type to avoid the assumption that first field of RedVDIReadBuf is a RedPipeItem. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
parent
5feb1d0379
commit
530b22b7ec
@ -745,7 +745,8 @@ static void reds_agent_remove(RedsState *reds)
|
||||
|
||||
static void vdi_port_read_buf_release(uint8_t *data, void *opaque)
|
||||
{
|
||||
red_pipe_item_unref((RedPipeItem *)opaque);
|
||||
RedVDIReadBuf *read_buf = (RedVDIReadBuf *)opaque;
|
||||
red_pipe_item_unref(&read_buf->base);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user