[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Added permissiveness for floats.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1168000166 0
# Node ID 36e00d04278d4fbdb0b034355a0e683372211752
# Parent  68f0d46de55ab1e158c19e7e5890902e05d6f623
Added permissiveness for floats.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/libxen/src/xen_common.c |    6 ++++++
 1 files changed, 6 insertions(+)

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
         {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.