aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_json.c
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2012-10-08 11:45:31 +0100
committerAnthony PERARD <anthony.perard@citrix.com>2012-10-08 11:45:31 +0100
commit2b3072ed0cbeed8c0385f20e92ba0f1201db8a17 (patch)
tree2064aba86fb931200cab209da33c098eba3c0f55 /tools/libxl/libxl_json.c
parent469848a080f1be2676cb003a68363edb7de0657e (diff)
downloadxen-2b3072ed0cbeed8c0385f20e92ba0f1201db8a17.tar.gz
xen-2b3072ed0cbeed8c0385f20e92ba0f1201db8a17.tar.bz2
xen-2b3072ed0cbeed8c0385f20e92ba0f1201db8a17.zip
libxl_json: Replace JSON_TRUE/FALSE by JSON_BOOL.
Those two JSON_TRUE and JSON_FALSE were types of node. But it's better to have a unique JSON_BOOL type. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_json.c')
-rw-r--r--tools/libxl/libxl_json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxl/libxl_json.c b/tools/libxl/libxl_json.c
index a045594aa1..26a7370971 100644
--- a/tools/libxl/libxl_json.c
+++ b/tools/libxl/libxl_json.c
@@ -394,8 +394,8 @@ static int json_callback_boolean(void *opaque, int boolean)
DEBUG_GEN_VALUE(ctx, bool, boolean);
- obj = libxl__json_object_alloc(ctx->gc,
- boolean ? JSON_TRUE : JSON_FALSE);
+ obj = libxl__json_object_alloc(ctx->gc, JSON_BOOL);
+ obj->u.b = boolean;
if (libxl__json_object_append_to(ctx->gc, obj, ctx->current) == -1) {
return 0;