diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-03 22:40:54 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-03 22:40:54 +0100 |
commit | cc63bb0faa05ce17fdb315faf06a42eca72dfccf (patch) | |
tree | 86717da22dec3b091208ef3eed64aca285663020 /net.c | |
parent | 425c608c481aee79de0a17e054e3c3bb0a6a530f (diff) | |
download | qemu-cc63bb0faa05ce17fdb315faf06a42eca72dfccf.zip qemu-cc63bb0faa05ce17fdb315faf06a42eca72dfccf.tar.gz qemu-cc63bb0faa05ce17fdb315faf06a42eca72dfccf.tar.bz2 |
Suppress type mismatch warnings in VDE code.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1103,7 +1103,7 @@ static void vde_to_qemu(void *opaque) uint8_t buf[4096]; int size; - size = vde_recv(s->vde, buf, sizeof(buf), 0); + size = vde_recv(s->vde, (char *)buf, sizeof(buf), 0); if (size > 0) { qemu_send_packet(s->vc, buf, size); } @@ -1114,7 +1114,7 @@ static void vde_from_qemu(void *opaque, const uint8_t *buf, int size) VDEState *s = opaque; int ret; for(;;) { - ret = vde_send(s->vde, buf, size, 0); + ret = vde_send(s->vde, (const char *)buf, size, 0); if (ret < 0 && errno == EINTR) { } else { break; @@ -1145,7 +1145,7 @@ static int net_vde_init(VLANState *vlan, const char *model, }; s = qemu_mallocz(sizeof(VDEState)); - s->vde = vde_open(init_sock, "QEMU", &args); + s->vde = vde_open(init_sock, (char *)"QEMU", &args); if (!s->vde){ free(s); return -1; |