diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libxl/libxl_device.c | 2 | ||||
-rw-r--r-- | tools/libxl/libxl_internal.h | 2 | ||||
-rw-r--r-- | tools/libxl/libxl_xshelp.c | 3 |
3 files changed, 4 insertions, 3 deletions
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; |