diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-08-03 09:54:16 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-08-03 09:54:16 +0100 |
commit | 662d2991eb798c73f29b89f00aede66602254264 (patch) | |
tree | 5542ff1d9eb003651fd856e532a2eda495ac4039 /tools/libxl | |
parent | 215f2a9aa994541259aa2c271158a173a7f099ef (diff) | |
download | xen-662d2991eb798c73f29b89f00aede66602254264.tar.gz xen-662d2991eb798c73f29b89f00aede66602254264.tar.bz2 xen-662d2991eb798c73f29b89f00aede66602254264.zip |
libxl: const correctness for libxl__xs_path_cleanup
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>
Diffstat (limited to 'tools/libxl')
-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; |