diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-04-02 11:55:51 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-04-25 09:49:25 +0100 |
commit | 39565707a9b9b6460ca18c5c9749ae565d583e2a (patch) | |
tree | aa763ddf710e8ade8c00c9fdb0f1b40089c5be09 /server/tests | |
parent | e1633c65cc804708a2a3dc7b94650300be38f2bf (diff) | |
download | spice-39565707a9b9b6460ca18c5c9749ae565d583e2a.tar.gz spice-39565707a9b9b6460ca18c5c9749ae565d583e2a.tar.xz spice-39565707a9b9b6460ca18c5c9749ae565d583e2a.zip |
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>
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/test_display_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c index f6c3f6b3..3e2ba6c7 100644 --- a/server/tests/test_display_base.c +++ b/server/tests/test_display_base.c @@ -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); } |