]> git.ipfire.org Git - thirdparty/libvirt.git/commit
src: replace last_component() with g_path_get_basename()
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 23 Dec 2019 15:47:21 +0000 (15:47 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 3 Jan 2020 15:42:13 +0000 (15:42 +0000)
commit12d17dcc26d908d1d675657936c7d036af7e39aa
tree1a4101f322e9417092d64f503e98c3239e307187
parentf5e9bdb87feed6834977ee9813405206d26fcad0
src: replace last_component() with g_path_get_basename()

The last_component() method is a GNULIB custom function
that returns a pointer to the base name in the path.
This is similar to g_path_get_basename() but without the
malloc. The extra malloc is no trouble for libvirt's
needs so we can use g_path_get_basename().

Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/conf/node_device_conf.c
src/node_device/node_device_udev.c
src/rpc/virnetsocket.c
src/storage/storage_backend_disk.c
src/storage/storage_util.c
src/util/virmdev.c
src/util/virnetdev.c
src/util/virpci.c
tests/testutils.c
tests/testutils.h
tests/virpcimock.c