Fix some compilation warnings on FreeBSD hosts
PATCH 1/1 Fix some compilation warnings on FreeBSD hosts
Signed-off-by Juergen Lock <[email protected]>
qemu-char.c +2 -2
@@ -1372,7 +1372,7 @@ static CharDriverState *qemu_chr_open_pp#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)static int pp_ioctl (CharDriverState *chr,int cmd,void *arg) { -int fd = (int )chr->opaque; +int fd = (int )(long )chr->opaque;uint8_t b;switch (cmd) {
@@ -1418,7 +1418,7 @@ static CharDriverState *qemu_chr_open_ppreturn NULL ; chr =qemu_mallocz (sizeof (CharDriverState)); - chr->opaque = (void *)fd; + chr->opaque = (void *)(long )fd; chr->chr_write = null_chr_write; chr->chr_ioctl = pp_ioctl;return chr;