ia64/xen-unstable

changeset 13271:36e00d04278d

Added permissiveness for floats.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Fri Jan 05 12:29:26 2007 +0000 (2007-01-05)
parents 68f0d46de55a
children bb8ae710d829
files tools/libxen/src/xen_common.c
line diff
     1.1 --- a/tools/libxen/src/xen_common.c	Fri Jan 05 11:03:16 2007 +0000
     1.2 +++ b/tools/libxen/src/xen_common.c	Fri Jan 05 12:29:26 2007 +0000
     1.3 @@ -557,8 +557,14 @@ static void parse_into(xen_session *s, x
     1.4          xmlChar *string = string_from_value(value_node, "double");
     1.5          if (string == NULL)
     1.6          {
     1.7 +#if PERMISSIVE
     1.8 +            fprintf(stderr,
     1.9 +                    "Expected a Float from the server, but didn't get one\n");
    1.10 +            ((double *)value)[slot] = 0.0;
    1.11 +#else
    1.12              server_error(
    1.13                  s, "Expected a Float from the server, but didn't get one");
    1.14 +#endif
    1.15          }
    1.16          else
    1.17          {