]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh-domain.c: use g_auto* in cmdDetachDevice()
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 4 Jan 2021 12:54:37 +0000 (09:54 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 1 Mar 2021 15:25:33 +0000 (12:25 -0300)
commit953be56eea9675086333a4f1b270b75d9d807b8e
tree5d7700381faae051fb647fa321aaaeabcc8ffc3f
parentfae5e343fb3661ac351ca06d4629e7ed59de5129
virsh-domain.c: use g_auto* in cmdDetachDevice()

Use g_auto* pointers to avoid the need of a cleanup label. The
type of the pointer 'virDomainPtr dom' was changed to its alias
'virshDomainPtr' to allow the use of g_autoptr().

Reviewed-by: Laine Stump <laine@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
tools/virsh-domain.c