From d918f23efaf486293b96418fe5deaff8a5583304 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 24 Jun 2009 14:42:30 +0200 Subject: slirp: Kill slirp_is_inited Avoid the need for slirp_is_inited by refactoring the protected slirp_select_* functions. This also avoids the clearing of all fd sets on select errors. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- net.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'net.c') diff --git a/net.c b/net.c index fac645780c..5f8edda005 100644 --- a/net.c +++ b/net.c @@ -120,9 +120,7 @@ #include "qemu_socket.h" #include "qemu-log.h" -#if defined(CONFIG_SLIRP) -#include "libslirp.h" -#endif +#include "slirp/libslirp.h" static VLANState *first_vlan; @@ -712,11 +710,6 @@ void slirp_output(const uint8_t *pkt, int pkt_len) qemu_send_packet(slirp_vc, pkt, pkt_len); } -int slirp_is_inited(void) -{ - return slirp_inited; -} - static ssize_t slirp_receive(VLANClientState *vc, const uint8_t *buf, size_t size) { #ifdef DEBUG_SLIRP -- cgit v1.2.3