]> git.proxmox.com Git - mirror_qemu.git/commitdiff
constify drive_get_by_id arg
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 31 Jul 2009 10:25:38 +0000 (12:25 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 10 Aug 2009 18:05:27 +0000 (13:05 -0500)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

sysemu.h
vl.c

index c7065ac038a8606238d08aba2e6d76a8a710bb31..ca2501539092a8111ba28c06dfc113e54d933e60 100644 (file)
--- a/sysemu.h
+++ b/sysemu.h
@@ -176,7 +176,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 6c4a5099894257939222c441f8f46584c247e64a..d82c3d84d254422d8ab0fc2c70cbb2c20d8a2277 100644 (file)
--- 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;