Revision e0efb993 qemu-char.c

b/qemu-char.c
1376 1376
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
1377 1377
static int pp_ioctl(CharDriverState *chr, int cmd, void *arg)
1378 1378
{
1379
    int fd = (int)(long)chr->opaque;
1379
    int fd = (int)(intptr_t)chr->opaque;
1380 1380
    uint8_t b;
1381 1381

  
1382 1382
    switch(cmd) {
......
1422 1422
        return NULL;
1423 1423

  
1424 1424
    chr = qemu_mallocz(sizeof(CharDriverState));
1425
    chr->opaque = (void *)(long)fd;
1425
    chr->opaque = (void *)(intptr_t)fd;
1426 1426
    chr->chr_write = null_chr_write;
1427 1427
    chr->chr_ioctl = pp_ioctl;
1428 1428
    return chr;

Also available in: Unified diff