]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Decrease scope of variables in qemuConnectGetAllDomainStats()
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 18 Oct 2021 08:52:47 +0000 (10:52 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 18 Oct 2021 10:09:39 +0000 (12:09 +0200)
commit8fbffeae072efe45ba12550ee488bf8a004b5ae8
tree605401fb0a8eec6e35f0a38530993cc83d6b3051
parentc2c67fe4fdd83132606042a0dd8db71dbaa367f7
qemu: Decrease scope of variables in qemuConnectGetAllDomainStats()

There are two variables (@vm and @domflags) in qemuConnectGetAllDomainStats()
that are used only within the for() loop but declared for entire function.
Bring them into the loop to make it obvious they are not used outside of it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/qemu/qemu_driver.c