mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-12 06:04:46 -05:00
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>
This commit is contained in:
@@ -36,8 +36,6 @@
|
||||
# define fprintf virFilePrintf
|
||||
#endif
|
||||
|
||||
extern char *progname;
|
||||
|
||||
/* Makefile.am provides these two definitions */
|
||||
#if !defined(abs_srcdir) || !defined(abs_builddir)
|
||||
# error Fix Makefile.am
|
||||
|
||||
Reference in New Issue
Block a user