[PATCH 10/21] domain_conf: modernize virDomainDiskDefParseXML()
Michal Privoznik
mprivozn at redhat.com
Tue Dec 1 18:47:03 UTC 2020
On 11/24/20 8:20 PM, Daniel Henrique Barboza wrote:
> Register an AUTOPTR_CLEANUP_FUNC for virDomainDiskDefPtr, then
> use g_autoptr() in virDomainDiskDef and virStorageEncryption
> pointers to get rid of the 'cleanup' and 'error' labels.
>
> Signed-off-by: Daniel Henrique Barboza <danielhb413 at gmail.com>
> ---
> src/conf/domain_conf.c | 95 +++++++++++++++++++-----------------------
> src/conf/domain_conf.h | 1 +
> 2 files changed, 45 insertions(+), 51 deletions(-)
Reviewed-by: Michal Privoznik <mprivozn at redhat.com>
Michal
More information about the libvir-list
mailing list