mirror of https://github.com/xemu-project/xemu.git
Suppress type mismatch warnings in VDE code.
Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
425c608c48
commit
cc63bb0faa
6
net.c
6
net.c
|
@ -1103,7 +1103,7 @@ static void vde_to_qemu(void *opaque)
|
||||||
uint8_t buf[4096];
|
uint8_t buf[4096];
|
||||||
int size;
|
int size;
|
||||||
|
|
||||||
size = vde_recv(s->vde, buf, sizeof(buf), 0);
|
size = vde_recv(s->vde, (char *)buf, sizeof(buf), 0);
|
||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
qemu_send_packet(s->vc, buf, size);
|
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;
|
VDEState *s = opaque;
|
||||||
int ret;
|
int ret;
|
||||||
for(;;) {
|
for(;;) {
|
||||||
ret = vde_send(s->vde, buf, size, 0);
|
ret = vde_send(s->vde, (const char *)buf, size, 0);
|
||||||
if (ret < 0 && errno == EINTR) {
|
if (ret < 0 && errno == EINTR) {
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
|
@ -1145,7 +1145,7 @@ static int net_vde_init(VLANState *vlan, const char *model,
|
||||||
};
|
};
|
||||||
|
|
||||||
s = qemu_mallocz(sizeof(VDEState));
|
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){
|
if (!s->vde){
|
||||||
free(s);
|
free(s);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue