]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2-bitmap.c
block/dirty-bitmap: Clean up local variable shadowing
authorMarkus Armbruster <armbru@redhat.com>
Thu, 21 Sep 2023 12:13:09 +0000 (14:13 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 29 Sep 2023 06:13:57 +0000 (08:13 +0200)
commit6a0f7ff7dd2034fb167557f0444e1f1851dbd654
tree6866be6fb9d9642b403ce6dbd1fc490a6ee81150
parente33e66b1b3655d98aadebf7e22eae18077698401
block/dirty-bitmap: Clean up local variable shadowing

Local variables shadowing other local variables or parameters make the
code needlessly hard to understand.  Tracked down with -Wshadow=local.
Clean up: rename both the pair of parameters and the pair of local
variables.  While there, move the local variables to function scope.

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20230921121312.1301864-5-armbru@redhat.com>
block/monitor/bitmap-qmp-cmds.c
block/qcow2-bitmap.c