mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-09 21:25:09 +00:00
Make some int->pointer casts explicit
Tell the compiler that was really do intend to cast from int to pointer, to prevent warnings about implicit casts * server/tests/test_display_base.c: Add explicit casts Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
e1633c65cc
commit
39565707a9
@ -522,7 +522,7 @@ static void do_wakeup(void *opaque)
|
||||
|
||||
static void release_resource(QXLInstance *qin, struct QXLReleaseInfoExt release_info)
|
||||
{
|
||||
QXLCommandExt *ext = (unsigned long)release_info.info->id;
|
||||
QXLCommandExt *ext = (QXLCommandExt*)(unsigned long)release_info.info->id;
|
||||
//printf("%s\n", __func__);
|
||||
ASSERT(release_info.group_id == MEM_SLOT_GROUP_ID);
|
||||
switch (ext->cmd.type) {
|
||||
@ -533,7 +533,7 @@ static void release_resource(QXLInstance *qin, struct QXLReleaseInfoExt release_
|
||||
free(ext);
|
||||
break;
|
||||
case QXL_CMD_CURSOR: {
|
||||
QXLCursorCmd *cmd = (unsigned long)ext->cmd.data;
|
||||
QXLCursorCmd *cmd = (QXLCursorCmd *)(unsigned long)ext->cmd.data;
|
||||
if (cmd->type == QXL_CURSOR_SET) {
|
||||
free(cmd);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user