From c2739fc6af5856797c4b876291346cbd7b25e45f Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Thu, 9 Nov 2006 11:40:28 +0000 Subject: [PATCH] Rename abstract_value.double_val -> float_val. All the other names match the abstract type names in the doc, so this one should too. Signed-off-by: Ewan Mellor --- tools/libxen/include/xen_internal.h | 3 ++- tools/libxen/src/xen_common.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/libxen/include/xen_internal.h b/tools/libxen/include/xen_internal.h index 0ac712e603..043c4053f8 100644 --- a/tools/libxen/include/xen_internal.h +++ b/tools/libxen/include/xen_internal.h @@ -96,10 +96,11 @@ typedef struct abstract_value const char *string_val; int64_t int_val; int enum_val; - double double_val; + double float_val; bool bool_val; arbitrary_set *set_val; void *struct_val; + time_t datetime_val; } u; } abstract_value; diff --git a/tools/libxen/src/xen_common.c b/tools/libxen/src/xen_common.c index 71b977a5f0..bd370bb257 100644 --- a/tools/libxen/src/xen_common.c +++ b/tools/libxen/src/xen_common.c @@ -1050,7 +1050,7 @@ make_body(const char *method_name, abstract_value params[], int param_count) break; case FLOAT: - snprintf(buf, sizeof(buf), "%lf", v->u.double_val); + snprintf(buf, sizeof(buf), "%lf", v->u.float_val); add_param(params_node, "double", buf); break; -- 2.30.2