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

Peter Krempa pkrempa at redhat.com
Thu Jun 2 07:57:14 UTC 2022


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 at redhat.com>
> ---
>  src/conf/domain_conf.c | 16 ++++++++++++----
>  1 file changed, 12 insertions(+), 4 deletions(-)

Reviewed-by: Peter Krempa <pkrempa at redhat.com>


More information about the libvir-list mailing list