2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

check for missing #include <isc/strerr.h>

This commit is contained in:
Mark Andrews
2018-11-16 12:23:08 +11:00
parent 1ca5920113
commit bad342adab

View File

@@ -25,6 +25,21 @@ list=`git grep -l snprintf lib bin |
echo "$list"
}
#
# Check for missing #include <isc/strerr.h>
#
list=`git grep -wl strerror_r lib bin |
grep '\.c$' |
grep -vE -e '(lib/bind|lib/dns/rdata|lib/dns/gen.c)' \
-e lib/isc/string.c \
-e '(lib/isc/win32/time.c|dlzexternal/driver.c)' |
xargs grep -EL "(isc/strerr.h)" 2> /dev/null`
[ -n "$list" ] && {
status=1
echo 'Missing #include <isc/strerr.h>:'
echo "$list"
}
#
# Check for missing #include <inttypes.h>"
#