[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 07/10] constify drive_get_by_id arg
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 07/10] constify drive_get_by_id arg |
Date: |
Fri, 31 Jul 2009 12:25:38 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
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
- [Qemu-devel] [PATCH 0/10] QemuOpts+qdev patches., Gerd Hoffmann, 2009/07/31
- [Qemu-devel] [PATCH 01/10] QemuOpts: add some functions, Gerd Hoffmann, 2009/07/31
- [Qemu-devel] [PATCH 02/10] QemuOpts: qemu_opts_parse: fix id= parsing, Gerd Hoffmann, 2009/07/31
- [Qemu-devel] [PATCH 05/10] QemuOpts: add -set option, Gerd Hoffmann, 2009/07/31
- [Qemu-devel] [PATCH 03/10] QemuOpts: make the drive id actually show up in "info block"., Gerd Hoffmann, 2009/07/31
- [Qemu-devel] [PATCH 09/10] qdev/prop: add drive property., Gerd Hoffmann, 2009/07/31
- [Qemu-devel] [PATCH 07/10] constify drive_get_by_id arg,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 08/10] add -drive if=none, Gerd Hoffmann, 2009/07/31
- [Qemu-devel] [PATCH 04/10] QemuOpts: create qemu-config.h, Gerd Hoffmann, 2009/07/31
- [Qemu-devel] [PATCH 10/10] qdev-ify virtio-blk., Gerd Hoffmann, 2009/07/31
- [Qemu-devel] [PATCH 06/10] QemuOpts: switch over -device., Gerd Hoffmann, 2009/07/31