libxl: use macro CTX in libxl_qmp.c
authorKelley Nielsen <kelleynnn@gmail.com>
Mon, 11 Nov 2013 10:08:58 +0000 (02:08 -0800)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 11 Nov 2013 12:16:50 +0000 (12:16 +0000)
The new coding style uses the convenience macro CTX as declared in
libxl_internal.h. Substitute an invocation of this macro for its body
at the one place it occurs in libxl_qmp.c.

Suggested-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Kelley Nielsen <kelleynnn@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_qmp.c

index 7fa8748433e1159e74793dccef69c71d93bdb688..4af7db63d3529fb05d907dd4c20c22b89918308f 100644 (file)
@@ -348,7 +348,7 @@ static libxl__qmp_handler *qmp_init_handler(libxl__gc *gc, uint32_t domid)
                          "Failed to allocate qmp_handler");
         return NULL;
     }
-    qmp->ctx = libxl__gc_owner(gc);
+    qmp->ctx = CTX;
     qmp->domid = domid;
     qmp->timeout = 5;