From: Ewan Mellor Date: Thu, 9 Nov 2006 11:40:28 +0000 (+0000) Subject: Rename abstract_value.double_val -> float_val. All the other names match the X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15567^2~18 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c2739fc6af5856797c4b876291346cbd7b25e45f;p=xen.git 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 --- 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;