|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] libxl: use libxl_version_info_destroy, no
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1282228248 -3600
# Node ID 5aa4671f4fa4a3402bf993b3ede0506cf6db74ab
# Parent f7d818754afb58ef4140982a122a53d2d488f0e6
libxl: use libxl_version_info_destroy, not hand-coded do_free_version_info
[PATCH 11 of 16 of
libxl: autogenerate type definitions and destructor functions]
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
tools/libxl/libxl.c | 15 +--------------
1 files changed, 1 insertion(+), 14 deletions(-)
diff -r f7d818754afb -r 5aa4671f4fa4 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c Thu Aug 19 15:29:57 2010 +0100
+++ b/tools/libxl/libxl.c Thu Aug 19 15:30:48 2010 +0100
@@ -63,11 +63,10 @@ int libxl_ctx_init(libxl_ctx *ctx, int v
return 0;
}
-static void do_free_version_info(libxl_version_info *info);
int libxl_ctx_free(libxl_ctx *ctx)
{
xc_interface_close(ctx->xch);
- do_free_version_info(&ctx->version_info);
+ libxl_version_info_destroy(&ctx->version_info);
if (ctx->xsh) xs_daemon_close(ctx->xsh);
return 0;
}
@@ -2856,18 +2855,6 @@ int libxl_get_physinfo(libxl_ctx *ctx, l
return 0;
}
-static void do_free_version_info(libxl_version_info *info)
-{
- free(info->xen_version_extra);
- free(info->compiler);
- free(info->compile_by);
- free(info->compile_domain);
- free(info->compile_date);
- free(info->capabilities);
- free(info->changeset);
- free(info->commandline);
-}
-
const libxl_version_info* libxl_get_version_info(libxl_ctx *ctx)
{
union {
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] libxl: use libxl_version_info_destroy, not hand-coded do_free_version_info,
Xen patchbot-unstable <=
|
|
|
|
|