[libvirt PATCH 0/7] use g_new0 more: volume two (glib chronicles)

Ján Tomko jtomko at redhat.com
Fri Sep 25 13:16:06 UTC 2020


Ján Tomko (7):
  bhyve: use g_new0 instead of VIR_ALLOC*
  esx: use g_new0 instead of VIR_ALLOC*
  hyperv: use g_new0 instead of VIR_ALLOC*
  interface: use g_new0 instead of VIR_ALLOC*
  src: libvirt-stream: use g_new0 instead of VIR_ALLOC*
  storage: scsi: invert logic in createVport
  storage: use g_new0 instead of VIR_ALLOC*

 src/bhyve/bhyve_capabilities.c             |  3 +-
 src/bhyve/bhyve_domain.c                   |  9 ++----
 src/bhyve/bhyve_driver.c                   |  3 +-
 src/bhyve/bhyve_parse_command.c            |  7 ++---
 src/esx/esx_driver.c                       | 14 ++++-----
 src/esx/esx_network_driver.c               | 17 ++++-------
 src/esx/esx_storage_backend_iscsi.c        |  3 +-
 src/esx/esx_storage_backend_vmfs.c         |  8 ++---
 src/esx/esx_stream.c                       |  6 ++--
 src/esx/esx_util.c                         |  3 +-
 src/esx/esx_vi.c                           | 12 +++-----
 src/esx/esx_vi_types.c                     |  3 +-
 src/hyperv/hyperv_driver.c                 | 13 ++++-----
 src/hyperv/hyperv_util.c                   |  3 +-
 src/hyperv/hyperv_wmi.c                    | 13 ++-------
 src/interface/interface_backend_netcf.c    | 16 ++++------
 src/interface/interface_backend_udev.c     | 22 +++++---------
 src/libvirt-stream.c                       | 12 +++-----
 src/storage/storage_backend_disk.c         |  6 ++--
 src/storage/storage_backend_fs.c           |  8 ++---
 src/storage/storage_backend_gluster.c      | 12 +++-----
 src/storage/storage_backend_iscsi.c        |  8 ++---
 src/storage/storage_backend_iscsi_direct.c | 13 ++++-----
 src/storage/storage_backend_logical.c      |  6 ++--
 src/storage/storage_backend_mpath.c        |  3 +-
 src/storage/storage_backend_rbd.c          | 29 +++++++-----------
 src/storage/storage_backend_scsi.c         | 17 +++++------
 src/storage/storage_backend_sheepdog.c     |  3 +-
 src/storage/storage_backend_zfs.c          |  3 +-
 src/storage/storage_driver.c               | 14 +++------
 src/storage/storage_file_fs.c              |  3 +-
 src/storage/storage_file_gluster.c         |  6 ++--
 src/storage/storage_util.c                 | 34 ++++++++--------------
 33 files changed, 117 insertions(+), 215 deletions(-)

-- 
2.26.2




More information about the libvir-list mailing list