[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]