[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Fix some compilation warnings on FreeBSD hosts
From: |
Juergen Lock |
Subject: |
[Qemu-devel] [PATCH] Fix some compilation warnings on FreeBSD hosts |
Date: |
Thu, 25 Mar 2010 22:34:00 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Signed-off-by: Juergen Lock <address@hidden>
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -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_pp
return 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] Fix some compilation warnings on FreeBSD hosts,
Juergen Lock <=