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

[Xen-devel] [PATCH] libxl: const correctness for libxl__xs_path_cleanup



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1343899348 -3600
# Node ID 075da4778b0a1a84680ef0acd26fcd3b01adeee4
# Parent  e638a0aeb9856003661aa75d684855c6fd940b3c
libxl: const correctness for libxl__xs_path_cleanup

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

diff -r e638a0aeb985 -r 075da4778b0a tools/libxl/libxl_device.c
--- a/tools/libxl/libxl_device.c        Thu Aug 02 09:59:33 2012 +0100
+++ b/tools/libxl/libxl_device.c        Thu Aug 02 10:22:28 2012 +0100
@@ -523,7 +523,7 @@ DEFINE_DEVICES_ADD(nic)
 int libxl__device_destroy(libxl__gc *gc, libxl__device *dev)
 {
     char *be_path = libxl__device_backend_path(gc, dev);
-    char *fe_path = libxl__device_frontend_path(gc, dev);
+    const char *fe_path = libxl__device_frontend_path(gc, dev);
     xs_transaction_t t = 0;
     int rc;
 
diff -r e638a0aeb985 -r 075da4778b0a tools/libxl/libxl_internal.h
--- a/tools/libxl/libxl_internal.h      Thu Aug 02 09:59:33 2012 +0100
+++ b/tools/libxl/libxl_internal.h      Thu Aug 02 10:22:28 2012 +0100
@@ -614,7 +614,7 @@ void libxl__xs_transaction_abort(libxl__
  * It mimics xenstore-rm -t behaviour.
  */
 _hidden int libxl__xs_path_cleanup(libxl__gc *gc, xs_transaction_t t,
-                                   char *user_path);
+                                   const char *user_path);
 
 /*
  * Event generation functions provided by the libxl event core to the
diff -r e638a0aeb985 -r 075da4778b0a tools/libxl/libxl_xshelp.c
--- a/tools/libxl/libxl_xshelp.c        Thu Aug 02 09:59:33 2012 +0100
+++ b/tools/libxl/libxl_xshelp.c        Thu Aug 02 10:22:28 2012 +0100
@@ -233,7 +233,8 @@ void libxl__xs_transaction_abort(libxl__
     *t = 0;
 }
 
-int libxl__xs_path_cleanup(libxl__gc *gc, xs_transaction_t t, char *user_path)
+int libxl__xs_path_cleanup(libxl__gc *gc, xs_transaction_t t,
+                           const char *user_path)
 {
     unsigned int nb = 0;
     char *path, *last, *val;

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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