Revision 3f4cb3d3 hw/virtio-net.c

b/hw/virtio-net.c
313 313
static int receive_header(VirtIONet *n, struct iovec *iov, int iovcnt,
314 314
                          const void *buf, size_t size, size_t hdr_len)
315 315
{
316
    struct virtio_net_hdr *hdr = iov[0].iov_base;
316
    struct virtio_net_hdr *hdr = (struct virtio_net_hdr *)iov[0].iov_base;
317 317
    int offset = 0;
318 318

  
319 319
    hdr->flags = 0;

Also available in: Unified diff