Re: [PATCH 04/16] virDomainIOThreadIDDefArrayInit: Decrease scope of @iothrid

2022-06-02 Thread Peter Krempa
On Thu, Jun 02, 2022 at 09:17:54 +0200, Michal Privoznik wrote: > In virDomainIOThreadIDDefArrayInit() the variable @iothrid is > used only inside a loop but is declared for whole function. Bring > the variable into the loop so that it's obvious that the variable > is not used elsewhere. > > Signe

[PATCH 04/16] virDomainIOThreadIDDefArrayInit: Decrease scope of @iothrid

2022-06-02 Thread Michal Privoznik
In virDomainIOThreadIDDefArrayInit() the variable @iothrid is used only inside a loop but is declared for whole function. Bring the variable into the loop so that it's obvious that the variable is not used elsewhere. Signed-off-by: Michal Privoznik --- src/conf/domain_conf.c | 5 +++-- 1 file ch