Commit fcdc2129931c3bf6fe36a7a4ed35cdffb894c9c5
1 parent
c396a7f0
Suppress int<->pointer compiler warnings.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3128 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
4 deletions
vl.c
... | ... | @@ -1128,7 +1128,7 @@ static int hpet_start_timer(struct qemu_alarm_timer *t) |
1128 | 1128 | goto fail; |
1129 | 1129 | |
1130 | 1130 | enable_sigio_timer(fd); |
1131 | - t->priv = (void *)fd; | |
1131 | + t->priv = (void *)(long)fd; | |
1132 | 1132 | |
1133 | 1133 | return 0; |
1134 | 1134 | fail: |
... | ... | @@ -1138,7 +1138,7 @@ fail: |
1138 | 1138 | |
1139 | 1139 | static void hpet_stop_timer(struct qemu_alarm_timer *t) |
1140 | 1140 | { |
1141 | - int fd = (int)t->priv; | |
1141 | + int fd = (long)t->priv; | |
1142 | 1142 | |
1143 | 1143 | close(fd); |
1144 | 1144 | } |
... | ... | @@ -1164,14 +1164,14 @@ static int rtc_start_timer(struct qemu_alarm_timer *t) |
1164 | 1164 | |
1165 | 1165 | enable_sigio_timer(rtc_fd); |
1166 | 1166 | |
1167 | - t->priv = (void *)rtc_fd; | |
1167 | + t->priv = (void *)(long)rtc_fd; | |
1168 | 1168 | |
1169 | 1169 | return 0; |
1170 | 1170 | } |
1171 | 1171 | |
1172 | 1172 | static void rtc_stop_timer(struct qemu_alarm_timer *t) |
1173 | 1173 | { |
1174 | - int rtc_fd = (int)t->priv; | |
1174 | + int rtc_fd = (long)t->priv; | |
1175 | 1175 | |
1176 | 1176 | close(rtc_fd); |
1177 | 1177 | } | ... | ... |