* [Qemu-devel] [PATCH] blockdev: Use GCC_FMT_ATTR (format checking)
@ 2010-09-23 18:47 Stefan Weil
2010-10-03 7:48 ` [Qemu-devel] " Blue Swirl
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2010-09-23 18:47 UTC (permalink / raw)
To: QEMU Developers; +Cc: Blue Swirl, Kevin Wolf
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>
---
blockdev.h | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/blockdev.h b/blockdev.h
index 89dcd9a..653affc 100644
--- a/blockdev.h
+++ b/blockdev.h
@@ -34,14 +34,13 @@ struct DriveInfo {
#define MAX_IDE_DEVS 2
#define MAX_SCSI_DEVS 7
-extern DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit);
-extern int drive_get_max_bus(BlockInterfaceType type);
-extern void drive_uninit(DriveInfo *dinfo);
-extern DriveInfo *drive_get_by_blockdev(BlockDriverState *bs);
-
-extern QemuOpts *drive_add(const char *file, const char *fmt, ...);
-extern DriveInfo *drive_init(QemuOpts *arg, int default_to_scsi,
- int *fatal_error);
+DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit);
+int drive_get_max_bus(BlockInterfaceType type);
+void drive_uninit(DriveInfo *dinfo);
+DriveInfo *drive_get_by_blockdev(BlockDriverState *bs);
+
+QemuOpts *drive_add(const char *file, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
+DriveInfo *drive_init(QemuOpts *arg, int default_to_scsi, int *fatal_error);
/* device-hotplug */
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Qemu-devel] Re: [PATCH] blockdev: Use GCC_FMT_ATTR (format checking)
2010-09-23 18:47 [Qemu-devel] [PATCH] blockdev: Use GCC_FMT_ATTR (format checking) Stefan Weil
@ 2010-10-03 7:48 ` Blue Swirl
0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2010-10-03 7:48 UTC (permalink / raw)
To: Stefan Weil; +Cc: Kevin Wolf, QEMU Developers
Thanks, applied.
On Thu, Sep 23, 2010 at 6:47 PM, Stefan Weil <weil@mail.berlios.de> wrote:
> 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>
> ---
> blockdev.h | 15 +++++++--------
> 1 files changed, 7 insertions(+), 8 deletions(-)
>
> diff --git a/blockdev.h b/blockdev.h
> index 89dcd9a..653affc 100644
> --- a/blockdev.h
> +++ b/blockdev.h
> @@ -34,14 +34,13 @@ struct DriveInfo {
> #define MAX_IDE_DEVS 2
> #define MAX_SCSI_DEVS 7
>
> -extern DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit);
> -extern int drive_get_max_bus(BlockInterfaceType type);
> -extern void drive_uninit(DriveInfo *dinfo);
> -extern DriveInfo *drive_get_by_blockdev(BlockDriverState *bs);
> -
> -extern QemuOpts *drive_add(const char *file, const char *fmt, ...);
> -extern DriveInfo *drive_init(QemuOpts *arg, int default_to_scsi,
> - int *fatal_error);
> +DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit);
> +int drive_get_max_bus(BlockInterfaceType type);
> +void drive_uninit(DriveInfo *dinfo);
> +DriveInfo *drive_get_by_blockdev(BlockDriverState *bs);
> +
> +QemuOpts *drive_add(const char *file, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
> +DriveInfo *drive_init(QemuOpts *arg, int default_to_scsi, int *fatal_error);
>
> /* device-hotplug */
>
> --
> 1.7.1
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-03 7:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-23 18:47 [Qemu-devel] [PATCH] blockdev: Use GCC_FMT_ATTR (format checking) Stefan Weil
2010-10-03 7:48 ` [Qemu-devel] " Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).