From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH 3/6] libxl: portiblity fixes Date: Tue, 27 Jul 2010 14:17:51 +0200 Message-ID: <201007271417.51761.Christoph.Egger@amd.com> References: <201007201831.21416.Christoph.Egger@amd.com> <201007271415.17649.Christoph.Egger@amd.com> <201007271416.20170.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_v5sTMWSLv5XgsYW" Return-path: In-Reply-To: <201007271416.20170.Christoph.Egger@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org --Boundary-00=_v5sTMWSLv5XgsYW Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_v5sTMWSLv5XgsYW Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_tools_libxl3.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_tools_libxl3.diff" 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, --Boundary-00=_v5sTMWSLv5XgsYW Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_v5sTMWSLv5XgsYW--