* [PATCH] libxl: fix a typo in the GCREALLOC_ARRAY macro
@ 2012-06-13 9:20 Dario Faggioli
0 siblings, 0 replies; only message in thread
From: Dario Faggioli @ 2012-06-13 9:20 UTC (permalink / raw)
To: xen-devel; +Cc: Ian Jackson, Ian Campbell
Causing a build failure when trying to use it:
xxx: error: expected ';' before ')' token
xxx: error: expected statement before ')' token
Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
--- a/tools/libxl/libxl_internal.h
+++ b/tools/libxl/libxl_internal.h
@@ -1972,7 +1972,7 @@ struct libxl__domain_create_state {
#define GCREALLOC_ARRAY(var, nmemb) \
(assert(nmemb > 0), \
assert(ARRAY_SIZE_OK((var), (nmemb))), \
- (var) = libxl__realloc((gc), (var), (nmemb)*sizeof(*(var)))))
+ (var) = libxl__realloc((gc), (var), (nmemb)*sizeof(*(var))))
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-13 9:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-13 9:20 [PATCH] libxl: fix a typo in the GCREALLOC_ARRAY macro Dario Faggioli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).