]> git.proxmox.com Git - qemu.git/blobdiff - hw/device-hotplug.c
blockdev: Make drive_add() take explicit type, index parameters
[qemu.git] / hw / device-hotplug.c
index 9704e2feb2d6b9fea33fdcb1cf5a12a4b227d942..95a63726f3814b56ac2c526eeb591cff769fa5c1 100644 (file)
@@ -33,7 +33,7 @@ DriveInfo *add_init_drive(const char *optstr)
     DriveInfo *dinfo;
     QemuOpts *opts;
 
-    opts = drive_add(NULL, "%s", optstr);
+    opts = drive_def(optstr);
     if (!opts)
         return NULL;