Re: [PATCH 06/16] conf: Introduce allocator for virDomainIOThreadIDDef

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 02, 2022 at 09:17:56 +0200, Michal Privoznik wrote:
> So far, iothread configuration structure (virDomainIOThreadIDDef)
> is allocated by plain g_new0(). This is perfectly okay because
> all members of the struct default to value 0 anyway. But soon
> this is going to change. Therefore, replace those g_new0() with a
> function so that the default value can be set consistently in one
> place.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  src/conf/domain_conf.c | 16 ++++++++++++----
>  1 file changed, 12 insertions(+), 4 deletions(-)

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux