]> git.proxmox.com Git - qemu.git/blobdiff - cmd.c
qemu-io: Don't use global bs in command implementations
[qemu.git] / cmd.c
diff --git a/cmd.c b/cmd.c
index 214c6f757d5d16ca83676a32d2a669ad24ca9518..d501aabb0cb4d1c34ae3863f041c439df3a7a787 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -57,7 +57,7 @@ check_command(
        const cmdinfo_t *ci)
 {
        if (check_func)
-               return check_func(ci);
+               return check_func(qemuio_bs, ci);
        return 1;
 }
 
@@ -103,7 +103,7 @@ command(
                return 0;
        }
        optind = 0;
-       return ct->cfunc(argc, argv);
+       return ct->cfunc(qemuio_bs, argc, argv);
 }
 
 const cmdinfo_t *
@@ -452,6 +452,7 @@ static cmdinfo_t quit_cmd;
 /* ARGSUSED */
 static int
 quit_f(
+    BlockDriverState *bs,
        int     argc,
        char    **argv)
 {
@@ -490,6 +491,7 @@ help_all(void)
 
 static int
 help_f(
+    BlockDriverState *bs,
        int             argc,
        char            **argv)
 {