mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
libxl: libxl__device_model_version_running should return an int
On error it returns -1 and therefore it needs to return int and not
libxl_device_model_enum. Otherwise gcc 4.6.2 complains:
libxl.c: In function ‘libxl_domain_suspend’:
libxl.c:778:9: error: case value ‘4294967295’ not in enumerated type ‘libxl_device_model_version’ [-Werror=switch]
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
bd1c6cec55
commit
b1ec741ea1
2 files changed
+2
-4
No files matched your search
@@ -330,8 +330,7 @@ out:
|
||||
return rc;
|
||||
}
|
||||
|
||||
libxl_device_model_version libxl__device_model_version_running(libxl__gc *gc,
|
||||
uint32_t domid)
|
||||
int libxl__device_model_version_running(libxl__gc *gc, uint32_t domid)
|
||||
{
|
||||
char *path = NULL;
|
||||
char *dm_version = NULL;
|
||||
|
||||
@@ -1515,8 +1515,7 @@ _hidden libxl__json_object *libxl__json_parse(libxl__gc *gc, const char *s);
|
||||
|
||||
/* Based on /local/domain/$domid/dm-version xenstore key
|
||||
* default is qemu xen traditional */
|
||||
_hidden libxl_device_model_version
|
||||
libxl__device_model_version_running(libxl__gc *gc, uint32_t domid);
|
||||
_hidden int libxl__device_model_version_running(libxl__gc *gc, uint32_t domid);
|
||||
|
||||
|
||||
/*
|
||||
|
||||