diff options
author | Ian Campbell <Ian.Campbell@citrix.com> | 2013-03-14 09:45:57 +0000 |
---|---|---|
committer | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2013-03-14 11:33:02 +0000 |
commit | 37d930430c2f2ef4dedf27deb404d2fe2602c039 (patch) | |
tree | 3468df52d4ea9332907a3872efae9aa8a9cdfd3a /tools | |
parent | 5dc3fd23f66e8f3ce6aaecdf51a1d968f1db2ae4 (diff) | |
download | xen-37d930430c2f2ef4dedf27deb404d2fe2602c039.tar.gz xen-37d930430c2f2ef4dedf27deb404d2fe2602c039.tar.bz2 xen-37d930430c2f2ef4dedf27deb404d2fe2602c039.zip |
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@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools')
-rw-r--r-- | 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 7ec8c2b98c..2ea628a893 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 { |