libvirt/src/interface
Michal Privoznik 87a43a907f lib: Use g_clear_pointer() more
This change was generated using the following spatch:

  @ rule1 @
  expression a;
  identifier f;
  @@
    <...
  - f(*a);
    ... when != a;
  - *a = NULL;
  + g_clear_pointer(a, f);
    ...>

  @ rule2 @
  expression a;
  identifier f;
  @@
    <...
  - f(a);
    ... when != a;
  - a = NULL;
  + g_clear_pointer(&a, f);
    ...>

Then, I left some of the changes out, like tools/nss/ (which
doesn't link with glib) and put back a comment in
qemuBlockJobProcessEventCompletedActiveCommit() which coccinelle
decided to remove (I have no idea why).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2022-02-08 08:42:07 +01:00
..
interface_backend_netcf.c lib: Use g_clear_pointer() more 2022-02-08 08:42:07 +01:00
interface_backend_udev.c lib: Introduce and use g_autoptr() for virInterfaceDef 2021-11-02 10:52:18 +01:00
interface_driver.c
interface_driver.h src/interface: use #pragma once in headers 2019-06-13 17:05:09 +02:00
meson.build meson: Add missing virt_install_dirs 2022-02-02 16:26:36 +01:00
virtinterfaced.init.in configure: Provide OpenRC scripts for sub-daemons 2019-12-16 10:11:22 +01:00
virtinterfaced.service.in systemd: Use correct man page name in modular daemon service files 2022-02-01 13:20:11 +01:00