Re: [PATCH] qemu: Decrease scope of variables in qemuConnectGetAllDomainStats()

2021-10-18 Thread Erik Skultety
On Mon, Oct 18, 2021 at 10:54:55AM +0200, Michal Privoznik wrote: > 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

[PATCH] qemu: Decrease scope of variables in qemuConnectGetAllDomainStats()

2021-10-18 Thread Michal Privoznik
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 --- src/qemu/qemu_driver.c | 7