diff options
| author | Markus Armbruster | 2014-06-06 14:50:58 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2014-06-16 11:23:19 +0200 |
| commit | 60e19e06a4a28935c94e39d40c80193759af88ce (patch) | |
| tree | de2ab18ff967f88c2e8ca758010ac73911dfc688 /device-hotplug.c | |
| parent | blockdev: Move 'serial' option to drive_init() (diff) | |
| download | qemu-60e19e06a4a28935c94e39d40c80193759af88ce.tar.gz qemu-60e19e06a4a28935c94e39d40c80193759af88ce.tar.xz qemu-60e19e06a4a28935c94e39d40c80193759af88ce.zip | |
blockdev: Rename drive_init(), drive_uninit() to drive_new(), drive_del()
"Init" and "uninit" suggest the functions don't allocate / free
storage. But they do.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'device-hotplug.c')
| -rw-r--r-- | device-hotplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device-hotplug.c b/device-hotplug.c index eecb08e2b1..fc09d10fdb 100644 --- a/device-hotplug.c +++ b/device-hotplug.c @@ -40,7 +40,7 @@ DriveInfo *add_init_drive(const char *optstr) return NULL; mc = MACHINE_GET_CLASS(current_machine); - dinfo = drive_init(opts, mc->block_default_type); + dinfo = drive_new(opts, mc->block_default_type); if (!dinfo) { qemu_opts_del(opts); return NULL; |
