WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxl: const-correctness fix to device_physdisk_major_minor
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 28 Jul 2010 04:55:28 -0700
Delivery-date: Wed, 28 Jul 2010 04:57:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxl: const-correctness fix to device_physdisk_major_minor, Xen patchbot-unstable <=