Commit cc63bb0faa05ce17fdb315faf06a42eca72dfccf
1 parent
425c608c
Suppress type mismatch warnings in VDE code.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Showing
1 changed file
with
3 additions
and
3 deletions
net.c
| ... | ... | @@ -1103,7 +1103,7 @@ static void vde_to_qemu(void *opaque) |
| 1103 | 1103 | uint8_t buf[4096]; |
| 1104 | 1104 | int size; |
| 1105 | 1105 | |
| 1106 | - size = vde_recv(s->vde, buf, sizeof(buf), 0); | |
| 1106 | + size = vde_recv(s->vde, (char *)buf, sizeof(buf), 0); | |
| 1107 | 1107 | if (size > 0) { |
| 1108 | 1108 | qemu_send_packet(s->vc, buf, size); |
| 1109 | 1109 | } |
| ... | ... | @@ -1114,7 +1114,7 @@ static void vde_from_qemu(void *opaque, const uint8_t *buf, int size) |
| 1114 | 1114 | VDEState *s = opaque; |
| 1115 | 1115 | int ret; |
| 1116 | 1116 | for(;;) { |
| 1117 | - ret = vde_send(s->vde, buf, size, 0); | |
| 1117 | + ret = vde_send(s->vde, (const char *)buf, size, 0); | |
| 1118 | 1118 | if (ret < 0 && errno == EINTR) { |
| 1119 | 1119 | } else { |
| 1120 | 1120 | break; |
| ... | ... | @@ -1145,7 +1145,7 @@ static int net_vde_init(VLANState *vlan, const char *model, |
| 1145 | 1145 | }; |
| 1146 | 1146 | |
| 1147 | 1147 | s = qemu_mallocz(sizeof(VDEState)); |
| 1148 | - s->vde = vde_open(init_sock, "QEMU", &args); | |
| 1148 | + s->vde = vde_open(init_sock, (char *)"QEMU", &args); | |
| 1149 | 1149 | if (!s->vde){ |
| 1150 | 1150 | free(s); |
| 1151 | 1151 | return -1; | ... | ... |