[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxl: const-correctness fix to device_physdisk_major_minor



# HG changeset patch
# User Christoph Egger <Christoph.Egger@xxxxxxx>
# Date 1280249720 -3600
# Node ID 05d5048a7895b8f037ec1abf67d913ea8d690993
# Parent  987ec65d03288f71632128ca8937c1633ba75a6b
libxl: const-correctness fix to device_physdisk_major_minor

device_physdisk_major_minor does not intend to modify physpath.

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/libxl/libxl_device.c   |    2 +-
 tools/libxl/libxl_internal.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -r 987ec65d0328 -r 05d5048a7895 tools/libxl/libxl_device.c
--- a/tools/libxl/libxl_device.c        Tue Jul 27 17:20:23 2010 +0100
+++ b/tools/libxl/libxl_device.c        Tue Jul 27 17:55:20 2010 +0100
@@ -123,7 +123,7 @@ char *device_disk_backend_type_of_physty
     }
 }
 
-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 987ec65d0328 -r 05d5048a7895 tools/libxl/libxl_internal.h
--- a/tools/libxl/libxl_internal.h      Tue Jul 27 17:20:23 2010 +0100
+++ b/tools/libxl/libxl_internal.h      Tue Jul 27 17:55:20 2010 +0100
@@ -149,7 +149,7 @@ char *device_disk_backend_type_of_physty
 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,

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.