diff -r 1ca40043b632 -r 8ccaa5608511 tools/libxl/libxl_device.c --- a/tools/libxl/libxl_device.c Tue Jul 27 13:53:12 2010 +0200 +++ b/tools/libxl/libxl_device.c Tue Jul 27 13:55:04 2010 +0200 @@ -123,7 +123,7 @@ } } -int device_physdisk_major_minor(char *physpath, int *major, int *minor) +int device_physdisk_major_minor(const char *physpath, int *major, int *minor) { struct stat buf; if (stat(physpath, &buf) < 0) diff -r 1ca40043b632 -r 8ccaa5608511 tools/libxl/libxl_internal.h --- a/tools/libxl/libxl_internal.h Tue Jul 27 13:53:12 2010 +0200 +++ b/tools/libxl/libxl_internal.h Tue Jul 27 13:55:04 2010 +0200 @@ -149,7 +149,7 @@ char *device_disk_backend_type_of_phystype(libxl_disk_phystype phystype); char *device_disk_string_of_phystype(libxl_disk_phystype phystype); -int device_physdisk_major_minor(char *physpath, int *major, int *minor); +int device_physdisk_major_minor(const char *physpath, int *major, int *minor); int device_disk_dev_number(char *virtpath); int libxl_device_generic_add(struct libxl_ctx *ctx, libxl_device *device,