Fix the prototype of virtio_net_init()
commit1c9cce80d1cc489fe25fa8fb6c7ba055bfd65326
authorMark McLoughlin <markmc@redhat.com>
Thu, 15 Jan 2009 13:47:25 +0000 (15 13:47 +0000)
committerAvi Kivity <avi@redhat.com>
Thu, 15 Jan 2009 13:56:24 +0000 (15 15:56 +0200)
tree477d3ae29b1876d5316215a2979664608fbd8d8b
parent811d79647d1deec765062820d380ee8b159fe045
Fix the prototype of virtio_net_init()

NIC init functions don't return a PCIDevice pointer in upstream QEMU
but they do in KVM for hotplug.

Fixes:

  qemu/hw/pci.c:740: warning: initialization from incompatible pointer type

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/virtio-net.c
hw/virtio-net.h