Skip to contentSkip to conversation

kvm: qemu: fix qemu_send_packet

PATCH Applied Mark McLoughlin 2 participants 2 messages Jan 16, 2009 – Jan 18, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm: qemu: fix qemu_send_packet

KVM's qemu_send_packet() has a return value, qemu's doesn't.

---
 qemu/net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
qemu/net.c +1 -1
index f9b239f..9841197 100644
@@ -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
Applied
#1 lore raw
Quoted 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