aboutsummaryrefslogtreecommitdiff
path: root/slirp
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-01-17 15:43:56 +0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-02-07 15:49:08 +0200
commit6e513a78ea48af788c8b4302fc11b2994d650e5f (patch)
treef305fcfed57650b69f8ee3f5ed6d7c0954559482 /slirp
parent1ab67b98cdd78b94ce818a7d0a964e3e4d7a4538 (diff)
downloadqemu-6e513a78ea48af788c8b4302fc11b2994d650e5f.zip
qemu-6e513a78ea48af788c8b4302fc11b2994d650e5f.tar.gz
qemu-6e513a78ea48af788c8b4302fc11b2994d650e5f.tar.bz2
slirp: remove slirp_instances list
Now that polling is done per-instance, we don't need a global list of slirp instances. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'slirp')
-rw-r--r--slirp/slirp.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/slirp/slirp.c b/slirp/slirp.c
index 3a8d1bc..b37dd34 100644
--- a/slirp/slirp.c
+++ b/slirp/slirp.c
@@ -48,9 +48,6 @@ static const uint8_t special_ethaddr[ETH_ALEN] = {
unsigned curtime;
-static QTAILQ_HEAD(, Slirp) slirp_instances =
- QTAILQ_HEAD_INITIALIZER(slirp_instances);
-
static struct in_addr dns_addr;
#ifndef _WIN32
static struct in6_addr dns6_addr;
@@ -333,7 +330,6 @@ Slirp *slirp_init(int restricted, bool in_enabled, struct in_addr vnetwork,
#ifdef WITH_QEMU
slirp_state_register(slirp);
#endif
- QTAILQ_INSERT_TAIL(&slirp_instances, slirp, entry);
return slirp;
}
@@ -348,7 +344,6 @@ void slirp_cleanup(Slirp *slirp)
g_free(e);
}
- QTAILQ_REMOVE(&slirp_instances, slirp, entry);
#ifdef WITH_QEMU
slirp_state_unregister(slirp);
#endif