]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh-domain.c: modernize cmdVcpuinfo()
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 26 Jun 2020 22:10:41 +0000 (19:10 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Jul 2020 17:39:35 +0000 (19:39 +0200)
commit9d314334838adbbab9f720eeac3bd95363aae908
tree5613082a9cc455452195dcb6b56bacd57dd2c6c9
parenta3a628f54cf682abe0fe10270dc51b12df1a620f
virsh-domain.c: modernize cmdVcpuinfo()

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

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-domain.c