[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxl: make libxl_create_logfile const-correct


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Mon, 14 May 2012 16:32:38 +0000
  • Delivery-date: Mon, 14 May 2012 16:32:54 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
# Date 1336759140 -3600
# Node ID e0bc91c320c94648836f3296f28263a6cf31b24b
# Parent  ca1df379c8622982eee181596ee1f31049165755
libxl: make libxl_create_logfile const-correct

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Committed-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---


diff -r ca1df379c862 -r e0bc91c320c9 tools/libxl/libxl_utils.c
--- a/tools/libxl/libxl_utils.c Fri May 11 18:59:00 2012 +0100
+++ b/tools/libxl/libxl_utils.c Fri May 11 18:59:00 2012 +0100
@@ -193,7 +193,7 @@ static int logrename(libxl__gc *gc, cons
     return 0;
 }
 
-int libxl_create_logfile(libxl_ctx *ctx, char *name, char **full_name)
+int libxl_create_logfile(libxl_ctx *ctx, const char *name, char **full_name)
 {
     GC_INIT(ctx);
     struct stat stat_buf;
diff -r ca1df379c862 -r e0bc91c320c9 tools/libxl/libxl_utils.h
--- a/tools/libxl/libxl_utils.h Fri May 11 18:59:00 2012 +0100
+++ b/tools/libxl/libxl_utils.h Fri May 11 18:59:00 2012 +0100
@@ -26,7 +26,7 @@ int libxl_name_to_cpupoolid(libxl_ctx *c
 char *libxl_cpupoolid_to_name(libxl_ctx *ctx, uint32_t poolid);
 int libxl_get_stubdom_id(libxl_ctx *ctx, int guest_domid);
 int libxl_is_stubdom(libxl_ctx *ctx, uint32_t domid, uint32_t *target_domid);
-int libxl_create_logfile(libxl_ctx *ctx, char *name, char **full_name);
+int libxl_create_logfile(libxl_ctx *ctx, const char *name, char **full_name);
 int libxl_string_to_backend(libxl_ctx *ctx, char *s, libxl_disk_backend 
*backend);
 
 int libxl_read_file_contents(libxl_ctx *ctx, const char *filename,

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.