]> xenbits.xensource.com Git - libvirt.git/commit
conf: convert network_conf.c to use g_auto* pointers
authorLaine Stump <laine@redhat.com>
Wed, 10 Jun 2020 03:43:56 +0000 (23:43 -0400)
committerLaine Stump <laine@redhat.com>
Mon, 15 Jun 2020 20:02:16 +0000 (16:02 -0400)
commit257aba2dafee0fec97f3f0a2d06fb82587aaf1a0
tree562efff0b2f72956ebdd51dbf6f5d27903646e45
parent8a4f331e8cb662d787a310df07fefd080879abde
conf: convert network_conf.c to use g_auto* pointers

This was mostly boilerplate conversion, but in one case I needed to
define several differently named char* to take the place of a single
char *tmp that was re-used multiple times, and in another place there
was a single char* that was used at the toplevel of the function, and
then later used repeatedly inside a for loop, so I defined a new
separate char* inside the loop.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/conf/network_conf.c
src/conf/network_conf.h
src/util/virxml.h