mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
cleanup: Remove the duplicate header
Detected by a simple Shell script:
for i in $(git ls-files -- '*.[ch]'); do
awk 'BEGIN {
fail=0
}
/# *include.*\.h/{
match($0, /["<][^">]*[">]/)
arr[substr($0, RSTART+1, RLENGTH-2)]++
}
END {
for (key in arr) {
if (arr[key] > 1) {
fail=1
printf("%d %s\n", arr[key], key)
}
}
if (fail == 1)
exit 1
}' $i
if test $? != 0; then
echo "Duplicate header(s) in $i"
fi
done;
A later patch will add the syntax-check to avoid duplicate
headers.
This commit is contained in:
1 parent
2beae9c202
commit
bc95be5dea
14 files changed
-14
No files matched your search
@@ -51,7 +51,6 @@
|
||||
#include "virnetlink.h"
|
||||
#include "virnetserver.h"
|
||||
#include "remote.h"
|
||||
#include "remote_driver.h"
|
||||
#include "virhook.h"
|
||||
#include "viraudit.h"
|
||||
#include "locking/lock_manager.h"
|
||||
|
||||
Reference in new issue
Block a user