aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-08-23 20:22:22 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-08-23 20:22:22 +0000
commitfcdc2129931c3bf6fe36a7a4ed35cdffb894c9c5 (patch)
tree028c026716c5d9c24aa64aeb6fc4947c62ff540f /vl.c
parentc396a7f0f0416e62201faf83520e4710f60d62c5 (diff)
Suppress int<->pointer compiler warnings.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3128 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vl.c b/vl.c
index 29595a2d65..bfdf5204ff 100644
--- a/vl.c
+++ b/vl.c
@@ -1128,7 +1128,7 @@ static int hpet_start_timer(struct qemu_alarm_timer *t)
goto fail;
enable_sigio_timer(fd);
- t->priv = (void *)fd;
+ t->priv = (void *)(long)fd;
return 0;
fail:
@@ -1138,7 +1138,7 @@ fail:
static void hpet_stop_timer(struct qemu_alarm_timer *t)
{
- int fd = (int)t->priv;
+ int fd = (long)t->priv;
close(fd);
}
@@ -1164,14 +1164,14 @@ static int rtc_start_timer(struct qemu_alarm_timer *t)
enable_sigio_timer(rtc_fd);
- t->priv = (void *)rtc_fd;
+ t->priv = (void *)(long)rtc_fd;
return 0;
}
static void rtc_stop_timer(struct qemu_alarm_timer *t)
{
- int rtc_fd = (int)t->priv;
+ int rtc_fd = (long)t->priv;
close(rtc_fd);
}