[libvirt PATCH 00/15] Use g_auto* in src/cpu/*.

Tim Wiederhake posted 15 patches 3 years, 6 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20200907145906.426709-1-twiederh@redhat.com
There is a newer version of this series
src/cpu/cpu.c       |  31 ++----
src/cpu/cpu_map.c   |  60 ++++------
src/cpu/cpu_ppc64.c | 260 +++++++++++++++++---------------------------
3 files changed, 133 insertions(+), 218 deletions(-)
[libvirt PATCH 00/15] Use g_auto* in src/cpu/*.
Posted by Tim Wiederhake 3 years, 6 months ago
Mostly mechanical changes, the most "interesting" patches are the first (wher=
e should
the `G_DEFINE_AUTOPTR_CLEANUP_FUN` go?) and the last (removing call to `g_str=
freev`, as
it should not be necessary).

As an added benefit, this removes all `goto` usage in this directory.

Tim Wiederhake (15):
  cpu_map: Use g_auto* in loadData
  cpu_map: Use g_auto* in cpuMapLoadInclude
  cpu_map: Use g_auto* in loadIncludes
  cpu: Use g_auto* in virCPUCompareXML
  cpu: Use g_auto* in virCPUGetHost
  cpu_ppc64: Turn structs ppc64_{vendor,model,map} into typedefs
  cpu_ppc64: Use g_auto* in ppc64ModelCopy
  cpu_ppc64: Use g_auto* in ppc64VendorParse
  cpu_ppc64: Use g_auto* in ppc64ModelParse
  cpu_ppc64: Use g_auto* in ppc64LoadMap
  cpu_ppc64: Use g_auto* in ppc64Compute
  cpu_ppc64: Use g_auto* in ppc64DriverDecode
  cpu_ppc64: Use g_auto* in virCPUppc64GetHost
  cpu_ppc64: Use g_auto* in virCPUppc64Baseline
  cpu_ppc64: Use g_auto* in virCPUppc64DriverGetModels

 src/cpu/cpu.c       |  31 ++----
 src/cpu/cpu_map.c   |  60 ++++------
 src/cpu/cpu_ppc64.c | 260 +++++++++++++++++---------------------------
 3 files changed, 133 insertions(+), 218 deletions(-)

--=20
2.26.2