aboutsummaryrefslogtreecommitdiff
path: root/slirp/slirp.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-06-24 14:42:31 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-29 08:52:49 -0500
commitad0d8c4c326c87ee3f193f90f31ec4af0fce5598 (patch)
tree8cf29f6a524c52cdf7cc1b482060ade9e4a485e7 /slirp/slirp.h
parent9f8bd0421dc03b2640ac2d0a4d702354a218b2ab (diff)
slirp: Allocate/free stack instance dynamically
Allocate the internal slirp state dynamically and provide and call slirp_cleanup to properly release it after use. This patch finally unbreaks slirp release and re-instantiation via host_net_* monitor commands. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp/slirp.h')
-rw-r--r--slirp/slirp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/slirp.h b/slirp/slirp.h
index cb1a746b39..5d8861ceb5 100644
--- a/slirp/slirp.h
+++ b/slirp/slirp.h
@@ -259,7 +259,7 @@ struct Slirp {
void *opaque;
};
-extern Slirp slirp_instance;
+extern Slirp *slirp_instance;
#ifndef NULL
#define NULL (void *)0