ia64/xen-unstable

changeset 17398:0551891920b2

stubdom: trivial warning fixup

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Apr 05 22:21:01 2008 +0100 (2008-04-05)
parents 6bf674bd386d
children 61a3e041ea12
files tools/ioemu/vl.c
line diff
     1.1 --- a/tools/ioemu/vl.c	Sat Apr 05 22:20:25 2008 +0100
     1.2 +++ b/tools/ioemu/vl.c	Sat Apr 05 22:21:01 2008 +0100
     1.3 @@ -7689,11 +7689,13 @@ int main(int argc, char **argv)
     1.4      bdrv_init();
     1.5      xc_handle = xc_interface_open();
     1.6  #ifdef CONFIG_STUBDOM
     1.7 -    char *domid_s, *msg;
     1.8 -    if ((msg = xenbus_read(XBT_NIL, "domid", &domid_s)))
     1.9 -        fprintf(stderr,"Can not read our own domid\n", msg);
    1.10 -    else
    1.11 -        xenstore_parse_domain_config(atoi(domid_s));
    1.12 +    {
    1.13 +        char *domid_s, *msg;
    1.14 +        if ((msg = xenbus_read(XBT_NIL, "domid", &domid_s)))
    1.15 +            fprintf(stderr,"Can not read our own domid: %s\n", msg);
    1.16 +        else
    1.17 +            xenstore_parse_domain_config(atoi(domid_s));
    1.18 +    }
    1.19  #else /* CONFIG_STUBDOM */
    1.20      xenstore_parse_domain_config(domid);
    1.21  #endif /* CONFIG_STUBDOM */