]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
libxl: const correctness for libxl__xs_path_cleanup
authorIan Campbell <ian.campbell@citrix.com>
Fri, 3 Aug 2012 08:54:16 +0000 (09:54 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 3 Aug 2012 08:54:16 +0000 (09:54 +0100)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_device.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_xshelp.c

index 9fc63f1caa6c1c8a25715e73168529f420b68abc..df8ccf416ff66678434607720f9b03b3f633b16d 100644 (file)
@@ -507,7 +507,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;
 
index 6528694eb11b36563f92f8f52cca9b5a13ed2df4..674c88172a64e53a625b92f8f9985a5c166d3b1e 100644 (file)
@@ -614,7 +614,7 @@ void libxl__xs_transaction_abort(libxl__gc *gc, xs_transaction_t *t);
  * 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
index 0fedf8fac09bcd0c835b8e764e15bf737ec82365..52af4842e4a1675c6ab76f9269ec1976941264e5 100644 (file)
@@ -233,7 +233,8 @@ void libxl__xs_transaction_abort(libxl__gc *gc, xs_transaction_t *t)
     *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;