mirror of https://github.com/mirror/busybox.git
detect more obsolete headers
parent
59c6baedf7
commit
02fe81033f
|
@ -68,7 +68,7 @@ rm -f src.obsolete.funcs
|
||||||
# don't allow obsolete headers
|
# don't allow obsolete headers
|
||||||
#
|
#
|
||||||
find $srcdir/.. '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \
|
find $srcdir/.. '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \
|
||||||
grep -E -e '\<(malloc|memory)\.h\>' \
|
grep -E -e '\<(malloc|memory|sys/(errno|fcntl|signal|stropts|termios|unistd))\.h\>' \
|
||||||
| sed -e "s:^$srcdir/\.\./::g" > src.obsolete.headers
|
| sed -e "s:^$srcdir/\.\./::g" > src.obsolete.headers
|
||||||
testing "Obsolete headers" "cat src.obsolete.headers" "" "" ""
|
testing "Obsolete headers" "cat src.obsolete.headers" "" "" ""
|
||||||
rm -f src.obsolete.headers
|
rm -f src.obsolete.headers
|
||||||
|
|
Loading…
Reference in New Issue