Commit 0399bfe0bf949296258f2b182b6e70e49d03408f

Authored by blueswir1
1 parent 634a21f6

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

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5725 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 3 deletions
... ... @@ -1527,21 +1527,21 @@ static int dynticks_start_timer(struct qemu_alarm_timer *t)
1527 1527 return -1;
1528 1528 }
1529 1529  
1530   - t->priv = (void *)host_timer;
  1530 + t->priv = (void *)(long)host_timer;
1531 1531  
1532 1532 return 0;
1533 1533 }
1534 1534  
1535 1535 static void dynticks_stop_timer(struct qemu_alarm_timer *t)
1536 1536 {
1537   - timer_t host_timer = (timer_t)t->priv;
  1537 + timer_t host_timer = (timer_t)(long)t->priv;
1538 1538  
1539 1539 timer_delete(host_timer);
1540 1540 }
1541 1541  
1542 1542 static void dynticks_rearm_timer(struct qemu_alarm_timer *t)
1543 1543 {
1544   - timer_t host_timer = (timer_t)t->priv;
  1544 + timer_t host_timer = (timer_t)(long)t->priv;
1545 1545 struct itimerspec timeout;
1546 1546 int64_t nearest_delta_us = INT64_MAX;
1547 1547 int64_t current_us;
... ...