Revision d1839d73 qemu-char.c
b/qemu-char.c | ||
---|---|---|
1369 | 1369 |
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) |
1370 | 1370 |
static int pp_ioctl(CharDriverState *chr, int cmd, void *arg) |
1371 | 1371 |
{ |
1372 |
int fd = (int)chr->opaque; |
|
1372 |
int fd = (int)(long)chr->opaque;
|
|
1373 | 1373 |
uint8_t b; |
1374 | 1374 |
|
1375 | 1375 |
switch(cmd) { |
... | ... | |
1415 | 1415 |
return NULL; |
1416 | 1416 |
|
1417 | 1417 |
chr = qemu_mallocz(sizeof(CharDriverState)); |
1418 |
chr->opaque = (void *)fd; |
|
1418 |
chr->opaque = (void *)(long)fd;
|
|
1419 | 1419 |
chr->chr_write = null_chr_write; |
1420 | 1420 |
chr->chr_ioctl = pp_ioctl; |
1421 | 1421 |
return chr; |
Also available in: Unified diff