libxl: libxl__device_model_version_running should return an int
authorIan Campbell <ian.campbell@citrix.com>
Wed, 25 Jul 2012 16:57:22 +0000 (17:57 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 25 Jul 2012 16:57:22 +0000 (17:57 +0100)
commitb1ec741ea12eb599ce055e408b5d15fa7c7c8ea1
treee8c1b646937377bc307dad4667097d3ee9f722f9
parentbd1c6cec55afc265a019886f57dfc5bf4c2e1623
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>
tools/libxl/libxl_internal.c
tools/libxl/libxl_internal.h