]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-io.c
Replace calls of old bdrv_open
[mirror_qemu.git] / qemu-io.c
index 6b83714049c44f6810711fa647d87f7dd240cec8..ffb581734b7522833fb757e5f46de1ee3fbb4d36 100644 (file)
--- a/qemu-io.c
+++ b/qemu-io.c
@@ -1284,7 +1284,7 @@ static int openfile(char *name, int flags, int growable)
                flags |= BDRV_O_FILE;
        }
 
-       if (bdrv_open(bs, name, flags) < 0) {
+       if (bdrv_open(bs, name, flags, NULL) < 0) {
                fprintf(stderr, "%s: can't open device %s\n", progname, name);
                bs = NULL;
                return 1;