aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_internal.h
diff options
context:
space:
mode:
authorDario Faggioli <raistlin@linux.it>2012-06-06 12:46:17 +0100
committerDario Faggioli <raistlin@linux.it>2012-06-06 12:46:17 +0100
commit6cf7902d214993f6134cea28dc0ab18d624eab0f (patch)
tree1a65825a2617f980bc9d2fed436fe5c91ec56507 /tools/libxl/libxl_internal.h
parentb4cf0e8535981583199b838f7d7ca6becb3d668f (diff)
downloadxen-6cf7902d214993f6134cea28dc0ab18d624eab0f.tar.gz
xen-6cf7902d214993f6134cea28dc0ab18d624eab0f.tar.bz2
xen-6cf7902d214993f6134cea28dc0ab18d624eab0f.zip
libxl: convert malloc() to libxl__zalloc(NULL, ...)
And ditch the error handling in libxl_get_cpu_topology() Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> [ ijc -- define and use NOGC instead of NULL to allow improvements to this infrastructure in the future ] Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_internal.h')
-rw-r--r--tools/libxl/libxl_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
index f647e88d38..fcb5d99f39 100644
--- a/tools/libxl/libxl_internal.h
+++ b/tools/libxl/libxl_internal.h
@@ -1933,6 +1933,7 @@ struct libxl__domain_create_state {
#define GC_INIT(ctx) libxl__gc gc[1]; LIBXL_INIT_GC(gc[0],ctx)
#define GC_FREE libxl__free_all(gc)
#define CTX libxl__gc_owner(gc)
+#define NOGC NULL
/* Allocation macros all of which use the gc. */