From: Ian Campbell Date: Fri, 3 Aug 2012 08:54:16 +0000 (+0100) Subject: libxl: const correctness for libxl__xs_path_cleanup X-Git-Tag: 4.2.0-rc2~16 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=662d2991eb798c73f29b89f00aede66602254264;p=people%2Fdwmw2%2Fxen.git libxl: const correctness for libxl__xs_path_cleanup Signed-off-by: Ian Campbell Acked-by: Ian Jackson Committed-by: Ian Campbell --- diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index 9fc63f1caa..df8ccf416f 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -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; diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index 6528694eb1..674c88172a 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -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 diff --git a/tools/libxl/libxl_xshelp.c b/tools/libxl/libxl_xshelp.c index 0fedf8fac0..52af4842e4 100644 --- a/tools/libxl/libxl_xshelp.c +++ b/tools/libxl/libxl_xshelp.c @@ -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;