mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
constify drive_get_by_id arg
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
This commit is contained in:
parent
f31d07d175
commit
2e810b3668
2 changed files with 2 additions and 2 deletions
2
sysemu.h
2
sysemu.h
|
@ -176,7 +176,7 @@ extern TAILQ_HEAD(drivelist, DriveInfo) drives;
|
||||||
extern TAILQ_HEAD(driveoptlist, DriveOpt) driveopts;
|
extern TAILQ_HEAD(driveoptlist, DriveOpt) driveopts;
|
||||||
|
|
||||||
extern DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit);
|
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 int drive_get_max_bus(BlockInterfaceType type);
|
||||||
extern void drive_uninit(BlockDriverState *bdrv);
|
extern void drive_uninit(BlockDriverState *bdrv);
|
||||||
extern const char *drive_get_serial(BlockDriverState *bdrv);
|
extern const char *drive_get_serial(BlockDriverState *bdrv);
|
||||||
|
|
2
vl.c
2
vl.c
|
@ -1835,7 +1835,7 @@ DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
DriveInfo *drive_get_by_id(char *id)
|
DriveInfo *drive_get_by_id(const char *id)
|
||||||
{
|
{
|
||||||
DriveInfo *dinfo;
|
DriveInfo *dinfo;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue