libxl: fix a typo in the GCREALLOC_ARRAY macro
authorDario Faggioli <raistlin@linux.it>
Tue, 26 Jun 2012 16:00:20 +0000 (17:00 +0100)
committerDario Faggioli <raistlin@linux.it>
Tue, 26 Jun 2012 16:00:20 +0000 (17:00 +0100)
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>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_internal.h

index fa4c08ff87e29827bdab7483c1ebd796499cc2b1..31390e35c68db7c5162fd709411be959fbc465eb 100644 (file)
@@ -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))))
 
 
 /*