summaryrefslogtreecommitdiff
path: root/blockdev.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-06-02 18:55:22 +0200
committerKevin Wolf <kwolf@redhat.com>2010-06-15 09:41:59 +0200
commitc9b62a7ee14f51c9fa473a5bbefe264c904613ee (patch)
tree078a229e544ab9a5a715893bfec0ff4d3ba6a100 /blockdev.c
parentdbc13590f63fd04244e532e51aab3569fb525548 (diff)
downloadqemu-c9b62a7ee14f51c9fa473a5bbefe264c904613ee.tar.gz
qemu-c9b62a7ee14f51c9fa473a5bbefe264c904613ee.tar.bz2
qemu-c9b62a7ee14f51c9fa473a5bbefe264c904613ee.zip
blockdev: Give drives internal linkage
This is the list of drives defined with drive_init(). Hide it, so it doesn't get abused. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockdev.c')
-rw-r--r--blockdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blockdev.c b/blockdev.c
index f636bc6916..b376884d0e 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -15,7 +15,7 @@
#include "qemu-config.h"
#include "sysemu.h"
-struct drivelist drives = QTAILQ_HEAD_INITIALIZER(drives);
+static QTAILQ_HEAD(drivelist, DriveInfo) drives = QTAILQ_HEAD_INITIALIZER(drives);
QemuOpts *drive_add(const char *file, const char *fmt, ...)
{