]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
libxl: Fix yajl-related build error due to missing error value
authorAllen Kay <allen.m.kay@intel.com>
Mon, 20 Feb 2012 16:46:27 +0000 (16:46 +0000)
committerAllen Kay <allen.m.kay@intel.com>
Mon, 20 Feb 2012 16:46:27 +0000 (16:46 +0000)
Some versions of yajl lack yajl_gen_no_buf.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_json.c

index 54186838d3fe509cc0e4132502aab9f2c770b124..be6ad9693ef4308ec6370bff9fe456b1b57d20cf 100644 (file)
@@ -793,9 +793,9 @@ static const char *yajl_gen_status_to_string(yajl_gen_status s)
             return "generation complete";
         case yajl_gen_invalid_number:
             return "invalid number";
+#if 0 /* This is in the docs but not implemented in the version I am running. */
         case yajl_gen_no_buf:
             return "no buffer";
-#if 0 /* This is in the docs but not implemented in the version I am running. */
         case yajl_gen_invalid_string:
             return "invalid string";
 #endif