Rename abstract_value.double_val -> float_val. All the other names match the
authorEwan Mellor <ewan@xensource.com>
Thu, 9 Nov 2006 11:40:28 +0000 (11:40 +0000)
committerEwan Mellor <ewan@xensource.com>
Thu, 9 Nov 2006 11:40:28 +0000 (11:40 +0000)
abstract type names in the doc, so this one should too.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/libxen/include/xen_internal.h
tools/libxen/src/xen_common.c

index 0ac712e60306b7f6259bbaf8874a26caece9e392..043c4053f81432a229c52884bc4ca5b82b520bf5 100644 (file)
@@ -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;
 
index 71b977a5f050f4026e2b04708c8e2a81013b245f..bd370bb25728c5f4fc4260c3acfb1c6a9cbb5776 100644 (file)
@@ -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;