|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: const correctness for libxl__xs_path_cleanup
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1343984056 -3600
# Node ID 12f65475c13dff134a7f5540bf75c391e90ef491
# Parent afff548d43d770a3e074a20e1e7154ba5df1c8c6
libxl: const correctness for libxl__xs_path_cleanup
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
diff -r afff548d43d7 -r 12f65475c13d tools/libxl/libxl_device.c
--- a/tools/libxl/libxl_device.c Fri Aug 03 09:54:15 2012 +0100
+++ b/tools/libxl/libxl_device.c Fri Aug 03 09:54:16 2012 +0100
@@ -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 -r afff548d43d7 -r 12f65475c13d tools/libxl/libxl_internal.h
--- a/tools/libxl/libxl_internal.h Fri Aug 03 09:54:15 2012 +0100
+++ b/tools/libxl/libxl_internal.h Fri Aug 03 09:54:16 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 afff548d43d7 -r 12f65475c13d tools/libxl/libxl_xshelp.c
--- a/tools/libxl/libxl_xshelp.c Fri Aug 03 09:54:15 2012 +0100
+++ b/tools/libxl/libxl_xshelp.c Fri Aug 03 09:54:16 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |