]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
src: remove unused imports of dirname.h
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 23 Dec 2019 15:37:45 +0000 (15:37 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 3 Jan 2020 15:42:13 +0000 (15:42 +0000)
A few places were importing dirname.h without actually using it.

Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
build-aux/syntax-check.mk
src/qemu/qemu_command.c
src/storage/storage_driver.c
tests/virstoragetest.c

index 8de82e9872a86597ea9f791bb700c68b4d0bc364..7e7c59c3dfaa01a422eb5fd20bad04f95a8475a5 100644 (file)
@@ -611,7 +611,7 @@ sc_forbid_manual_xml_indent:
 # dirname and basename from <libgen.h> are not required to be thread-safe
 sc_prohibit_libgen:
        @prohibit='( (base|dir)name *\(|include .libgen\.h)' \
-       halt='use functions from gnulib "dirname.h", not <libgen.h>' \
+       halt='use functions from GLib, not <libgen.h>' \
          $(_sc_search_regexp)
 
 # raw xmlGetProp requires some nasty casts
index a8137b3a326c4d0f58aeb159f7728cb816550281..11d3c29297db9c1b60453437a0c25ea8d0eeb94d 100644 (file)
@@ -31,7 +31,6 @@
 #include "qemu_slirp.h"
 #include "qemu_block.h"
 #include "cpu/cpu.h"
-#include "dirname.h"
 #include "viralloc.h"
 #include "virlog.h"
 #include "virarch.h"
index 72ba25254391fcaeaa2e0590fd6c13f1d0fa4fcc..6bbf52f729c357f997dece3e814dc333b580cdcb 100644 (file)
@@ -48,7 +48,6 @@
 #include "virsecret.h"
 #include "virstring.h"
 #include "viraccessapicheck.h"
-//#include "dirname.h"
 #include "storage_util.h"
 
 #define VIR_FROM_THIS VIR_FROM_STORAGE
index b9d4a45cddfc98bdabe59e7ff2ef5de07e924d15..0e274ad1b7fa9c6898f883800739cf5c19fdcb9f 100644 (file)
@@ -26,7 +26,6 @@
 #include "virlog.h"
 #include "virstoragefile.h"
 #include "virstring.h"
-#include "dirname.h"
 
 #include "storage/storage_driver.h"