Revision fcdc2129

b/vl.c
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 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 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
}

Also available in: Unified diff