mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
libxl: fix old style declarations
Fix errors like: /local/work/xen.git/dist/install/usr/local/include/libxl_uuid.h:59:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] void static inline libxl_uuid_copy_0x040400(libxl_uuid *dst, ^ /local/work/xen.git/dist/install/usr/local/include/libxl_uuid.h:59:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration] /local/work/xen.git/dist/install/usr/local/include/libxl.h:1233:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] int static inline libxl_domain_create_restore_0x040200( ^ Signed-off-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Release-acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
1 parent
f3a7ca0240
commit
d5b6844942
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -1230,7 +1230,7 @@ int libxl_domain_create_restore(libxl_ctx *ctx, libxl_domain_config *d_config,
|
||||
|
||||
#if defined(LIBXL_API_VERSION) && LIBXL_API_VERSION < 0x040400
|
||||
|
||||
int static inline libxl_domain_create_restore_0x040200(
|
||||
static inline int libxl_domain_create_restore_0x040200(
|
||||
libxl_ctx *ctx, libxl_domain_config *d_config,
|
||||
uint32_t *domid, int restore_fd,
|
||||
const libxl_asyncop_how *ao_how,
|
||||
@@ -1254,7 +1254,7 @@ int static inline libxl_domain_create_restore_0x040200(
|
||||
#elif defined(LIBXL_API_VERSION) && LIBXL_API_VERSION >= 0x040400 \
|
||||
&& LIBXL_API_VERSION < 0x040700
|
||||
|
||||
int static inline libxl_domain_create_restore_0x040400(
|
||||
static inline int libxl_domain_create_restore_0x040400(
|
||||
libxl_ctx *ctx, libxl_domain_config *d_config,
|
||||
uint32_t *domid, int restore_fd,
|
||||
const libxl_domain_restore_params *params,
|
||||
|
||||
@@ -56,7 +56,7 @@ int libxl_uuid_from_string(libxl_uuid *uuid, const char *in);
|
||||
void libxl_uuid_copy(libxl_ctx *ctx_opt, libxl_uuid *dst,
|
||||
const libxl_uuid *src);
|
||||
#if defined(LIBXL_API_VERSION) && LIBXL_API_VERSION < 0x040500
|
||||
void static inline libxl_uuid_copy_0x040400(libxl_uuid *dst,
|
||||
static inline void libxl_uuid_copy_0x040400(libxl_uuid *dst,
|
||||
const libxl_uuid *src)
|
||||
{
|
||||
libxl_uuid_copy(NULL, dst, src);
|
||||
|
||||