Skip to contentSkip to conversation

[5725] Fix warnings caused by timer_t, it is 32 bits on Sparc64

Qemu-devel Blue Swirl 1 participant 1 message Nov 16, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

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
===================================================================

vl.c +3 -3
@@ -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;