summaryrefslogtreecommitdiff
path: root/src/xen_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xen_server.c')
-rw-r--r--src/xen_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xen_server.c b/src/xen_server.c
index 6758e63..731c175 100644
--- a/src/xen_server.c
+++ b/src/xen_server.c
@@ -61,7 +61,7 @@ struct dominfo {
TAILQ_HEAD(dominfo_list, dominfo);
static struct dominfo_list vchans = TAILQ_HEAD_INITIALIZER(vchans);
-static libxl_ctx ctx;
+static libxl_ctx *ctx;
static void vchan_queue(struct dominfo *d);
@@ -298,7 +298,7 @@ int
xen_linpicker_init(struct xs_handle *xenstore, xc_interface* xen_xc)
{
/* setup */
- libxl_ctx_init(&ctx, LIBXL_VERSION, 0);
+ libxl_ctx_alloc(&ctx, LIBXL_VERSION, 0);
/* watch for domain add/remove */
if (!xs_watch(xenstore, "/local/domain", LINPICKER_TOKEN))