* [Qemu-devel] [5725] Fix warnings caused by timer_t, it is 32 bits on Sparc64
@ 2008-11-16 11:37 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-11-16 11:37 UTC (permalink / raw)
To: qemu-devel
Revision: 5725
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5725
Author: blueswir1
Date: 2008-11-16 11:37:18 +0000 (Sun, 16 Nov 2008)
Log Message:
-----------
Fix warnings caused by timer_t, it is 32 bits on Sparc64
Modified Paths:
--------------
trunk/vl.c
Modified: trunk/vl.c
===================================================================
--- trunk/vl.c 2008-11-16 11:34:07 UTC (rev 5724)
+++ trunk/vl.c 2008-11-16 11:37:18 UTC (rev 5725)
@@ -1527,21 +1527,21 @@
return -1;
}
- t->priv = (void *)host_timer;
+ t->priv = (void *)(long)host_timer;
return 0;
}
static void dynticks_stop_timer(struct qemu_alarm_timer *t)
{
- timer_t host_timer = (timer_t)t->priv;
+ timer_t host_timer = (timer_t)(long)t->priv;
timer_delete(host_timer);
}
static void dynticks_rearm_timer(struct qemu_alarm_timer *t)
{
- timer_t host_timer = (timer_t)t->priv;
+ timer_t host_timer = (timer_t)(long)t->priv;
struct itimerspec timeout;
int64_t nearest_delta_us = INT64_MAX;
int64_t current_us;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-16 11:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-16 11:37 [Qemu-devel] [5725] Fix warnings caused by timer_t, it is 32 bits on Sparc64 Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).