summaryrefslogtreecommitdiff
path: root/xen-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'xen-common.c')
-rw-r--r--xen-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen-common.c b/xen-common.c
index 4860b2eb76..e641ad1aef 100644
--- a/xen-common.c
+++ b/xen-common.c
@@ -114,8 +114,8 @@ static void xen_change_state_handler(void *opaque, int running,
static int xen_init(MachineState *ms)
{
- xen_xc = xen_xc_interface_open(0, 0, 0);
- if (xen_xc == XC_HANDLER_INITIAL_VALUE) {
+ xen_xc = xc_interface_open(0, 0, 0);
+ if (xen_xc == NULL) {
xen_be_printf(NULL, 0, "can't open xen interface\n");
return -1;
}