mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
src: remove unused imports of dirname.h
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>
This commit is contained in:
parent
bf7d2a26a3
commit
8812163124
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include "virlog.h"
|
||||
#include "virstoragefile.h"
|
||||
#include "virstring.h"
|
||||
#include "dirname.h"
|
||||
|
||||
#include "storage/storage_driver.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user