提交 d1839d73 编写于 作者: J Juergen Lock 提交者: Blue Swirl

Fix some compilation warnings on FreeBSD hosts

Signed-off-by: NJuergen Lock <nox@jelal.kn-bremen.de>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 92c0e657
...@@ -1369,7 +1369,7 @@ static CharDriverState *qemu_chr_open_pp(QemuOpts *opts) ...@@ -1369,7 +1369,7 @@ static CharDriverState *qemu_chr_open_pp(QemuOpts *opts)
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
static int pp_ioctl(CharDriverState *chr, int cmd, void *arg) static int pp_ioctl(CharDriverState *chr, int cmd, void *arg)
{ {
int fd = (int)chr->opaque; int fd = (int)(long)chr->opaque;
uint8_t b; uint8_t b;
switch(cmd) { switch(cmd) {
...@@ -1415,7 +1415,7 @@ static CharDriverState *qemu_chr_open_pp(QemuOpts *opts) ...@@ -1415,7 +1415,7 @@ static CharDriverState *qemu_chr_open_pp(QemuOpts *opts)
return NULL; return NULL;
chr = qemu_mallocz(sizeof(CharDriverState)); chr = qemu_mallocz(sizeof(CharDriverState));
chr->opaque = (void *)fd; chr->opaque = (void *)(long)fd;
chr->chr_write = null_chr_write; chr->chr_write = null_chr_write;
chr->chr_ioctl = pp_ioctl; chr->chr_ioctl = pp_ioctl;
return chr; return chr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册