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

[Xen-changelog] [xen master] tools: libxl: unbreak build after ec41430ef6a7



commit 37d930430c2f2ef4dedf27deb404d2fe2602c039
Author:     Ian Campbell <Ian.Campbell@xxxxxxxxxx>
AuthorDate: Thu Mar 14 09:45:57 2013 +0000
Commit:     Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
CommitDate: Thu Mar 14 11:33:02 2013 +0000

    tools: libxl: unbreak build after ec41430ef6a7
    
    libxl_create.c: In function â??libxl__domain_build_info_setdefaultâ??:
    libxl_create.c:109: error: â??infoâ?? undeclared (first use in this 
function)
    libxl_create.c:109: error: (Each undeclared identifier is reported only once
    libxl_create.c:109: error: for each function it appears in.)
    cc1: warnings being treated as errors
    libxl_create.c:108: error: suggest explicit braces to avoid ambiguous 
â??elseâ??
    libxl_create.c: At top level:
    libxl_create.c:141: error: expected identifier or â??(â?? before â??ifâ??
    ...
    
    Fix is to insert the missing opening brace and s/info/b_info/ in one spot.
    
    Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
    Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
    Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/libxl/libxl_create.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c
index 7ec8c2b..2ea628a 100644
--- a/tools/libxl/libxl_create.c
+++ b/tools/libxl/libxl_create.c
@@ -105,8 +105,8 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc,
     libxl_defbool_setdefault(&b_info->device_model_stubdomain, false);
 
     if (!b_info->device_model_version) {
-        if (b_info->type == LIBXL_DOMAIN_TYPE_HVM)
-            if (libxl_defbool_val(info->device_model_stubdomain)) {
+        if (b_info->type == LIBXL_DOMAIN_TYPE_HVM) {
+            if (libxl_defbool_val(b_info->device_model_stubdomain)) {
                 b_info->device_model_version =
                     LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL;
             } else {
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
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®.