From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWpJG-00039c-8a for qemu-devel@nongnu.org; Fri, 31 Jul 2009 06:25:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWpJB-00037L-EV for qemu-devel@nongnu.org; Fri, 31 Jul 2009 06:25:57 -0400 Received: from [199.232.76.173] (port=47784 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWpJB-00037B-0r for qemu-devel@nongnu.org; Fri, 31 Jul 2009 06:25:53 -0400 Received: from mx2.redhat.com ([66.187.237.31]:47172) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWpJA-0004lO-HH for qemu-devel@nongnu.org; Fri, 31 Jul 2009 06:25:52 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6VAPpa7028406 for ; Fri, 31 Jul 2009 06:25:51 -0400 From: Gerd Hoffmann Date: Fri, 31 Jul 2009 12:25:38 +0200 Message-Id: <1249035941-4562-8-git-send-email-kraxel@redhat.com> In-Reply-To: <1249035941-4562-1-git-send-email-kraxel@redhat.com> References: <1249035941-4562-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 07/10] constify drive_get_by_id arg List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- sysemu.h | 2 +- vl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sysemu.h b/sysemu.h index 6af88d8..21e132c 100644 --- a/sysemu.h +++ b/sysemu.h @@ -183,7 +183,7 @@ extern TAILQ_HEAD(drivelist, DriveInfo) drives; extern TAILQ_HEAD(driveoptlist, DriveOpt) driveopts; extern DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit); -extern DriveInfo *drive_get_by_id(char *id); +extern DriveInfo *drive_get_by_id(const char *id); extern int drive_get_max_bus(BlockInterfaceType type); extern void drive_uninit(BlockDriverState *bdrv); extern const char *drive_get_serial(BlockDriverState *bdrv); diff --git a/vl.c b/vl.c index 1a47497..12423b2 100644 --- a/vl.c +++ b/vl.c @@ -1835,7 +1835,7 @@ DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit) return NULL; } -DriveInfo *drive_get_by_id(char *id) +DriveInfo *drive_get_by_id(const char *id) { DriveInfo *dinfo; -- 1.6.2.5