kvm: qemu: fix qemu_send_packet
PATCH 1/1 kvm: qemu: fix qemu_send_packet
KVM's qemu_send_packet() has a return value, qemu's doesn't.
Signed-off-by Mark McLoughlin <[email protected]>
--- qemu/net.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
qemu/net.c +1 -1
@@ -391,7 +391,7 @@ int qemu_send_packet(VLANClientState *vc1, const uint8_t *buf, int size)int ret = -EAGAIN ;if (vc1->link_down) -return ; +return 0 ;#ifdef DEBUG_NET printf ("vlan %d send:\n" , vlan->id);
Signature · 1 line
1.6.0.6
Avi Kivity
AppliedQuoted 3 lines · Mark McLoughlin
KVM's
qemu_send_packet()has a return value, qemu's doesn't.
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function