]> Git Repo - qemu.git/blobdiff - vl.c
signal/ppc/{save,restore}_user_regs remove __put/get error checks
[qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index ac0e3d7e835fb5291346201554b649dfcd218844..be69c7f3468f7eaa9bbbe3243fd9f213650198fc 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -1074,7 +1074,7 @@ static int drive_init_func(QemuOpts *opts, void *opaque)
 {
     BlockInterfaceType *block_default_type = opaque;
 
-    return drive_init(opts, *block_default_type) == NULL;
+    return drive_new(opts, *block_default_type) == NULL;
 }
 
 static int drive_enable_snapshot(QemuOpts *opts, void *opaque)
@@ -1098,7 +1098,7 @@ static void default_drive(int enable, int snapshot, BlockInterfaceType type,
     if (snapshot) {
         drive_enable_snapshot(opts, NULL);
     }
-    if (!drive_init(opts, type)) {
+    if (!drive_new(opts, type)) {
         exit(1);
     }
 }
This page took 0.023032 seconds and 4 git commands to generate.