]> xenbits.xensource.com Git - libvirt.git/commit
interface: use g_strdup instead of VIR_STRDUP
authorJán Tomko <jtomko@redhat.com>
Sun, 20 Oct 2019 11:49:46 +0000 (13:49 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 21 Oct 2019 10:51:56 +0000 (12:51 +0200)
commit2f3b7a5555c4cf4127ff3f8e00746eafcc91432c
treefa1dbd2f568314ffd31c191c81614910fe26eaef
parent07ef88935ae0394cdd35d582ffca07f4d02d6c89
interface: use g_strdup instead of VIR_STRDUP

Replace all occurrences of
  if (VIR_STRDUP(a, b) < 0)
     /* effectively dead code */
with:
  a = g_strdup(b);

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/interface/interface_backend_netcf.c
src/interface/interface_backend_udev.c