28 lines
961 B
Diff
28 lines
961 B
Diff
# HG changeset patch
|
|
# User Ewan Mellor <ewan@xensource.com>
|
|
# Date 1168000166 0
|
|
# Node ID 36e00d04278d4fbdb0b034355a0e683372211752
|
|
# Parent 68f0d46de55ab1e158c19e7e5890902e05d6f623
|
|
Added permissiveness for floats.
|
|
|
|
Signed-off-by: Ewan Mellor <ewan@xensource.com>
|
|
|
|
diff -r 68f0d46de55a -r 36e00d04278d tools/libxen/src/xen_common.c
|
|
--- a/tools/libxen/src/xen_common.c Fri Jan 05 11:03:16 2007 +0000
|
|
+++ b/tools/libxen/src/xen_common.c Fri Jan 05 12:29:26 2007 +0000
|
|
@@ -557,8 +557,14 @@ static void parse_into(xen_session *s, x
|
|
xmlChar *string = string_from_value(value_node, "double");
|
|
if (string == NULL)
|
|
{
|
|
+#if PERMISSIVE
|
|
+ fprintf(stderr,
|
|
+ "Expected a Float from the server, but didn't get one\n");
|
|
+ ((double *)value)[slot] = 0.0;
|
|
+#else
|
|
server_error(
|
|
s, "Expected a Float from the server, but didn't get one");
|
|
+#endif
|
|
}
|
|
else
|
|
{
|