mirror of https://github.com/xemu-project/xemu.git
blockdev: Use GCC_FMT_ATTR (format checking)
Additional changes: * Removed 'extern' from drive_add (avoids too long line). * Removed 'extern' from other functions (makes declarations consistent with others in same header file). Cc: Blue Swirl <blauwirbel@gmail.com> Cc: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
8b7968f7c4
commit
6ea421fee1
13
blockdev.h
13
blockdev.h
|
@ -34,14 +34,13 @@ struct DriveInfo {
|
||||||
#define MAX_IDE_DEVS 2
|
#define MAX_IDE_DEVS 2
|
||||||
#define MAX_SCSI_DEVS 7
|
#define MAX_SCSI_DEVS 7
|
||||||
|
|
||||||
extern DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit);
|
DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit);
|
||||||
extern int drive_get_max_bus(BlockInterfaceType type);
|
int drive_get_max_bus(BlockInterfaceType type);
|
||||||
extern void drive_uninit(DriveInfo *dinfo);
|
void drive_uninit(DriveInfo *dinfo);
|
||||||
extern DriveInfo *drive_get_by_blockdev(BlockDriverState *bs);
|
DriveInfo *drive_get_by_blockdev(BlockDriverState *bs);
|
||||||
|
|
||||||
extern QemuOpts *drive_add(const char *file, const char *fmt, ...);
|
QemuOpts *drive_add(const char *file, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
|
||||||
extern DriveInfo *drive_init(QemuOpts *arg, int default_to_scsi,
|
DriveInfo *drive_init(QemuOpts *arg, int default_to_scsi, int *fatal_error);
|
||||||
int *fatal_error);
|
|
||||||
|
|
||||||
/* device-hotplug */
|
/* device-hotplug */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue