mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
detect more obsolete headers
This commit is contained in:
parent
59c6baedf7
commit
02fe81033f
@ -68,7 +68,7 @@ rm -f src.obsolete.funcs
|
||||
# don't allow obsolete headers
|
||||
#
|
||||
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
|
||||
testing "Obsolete headers" "cat src.obsolete.headers" "" "" ""
|
||||
rm -f src.obsolete.headers
|
||||
|
Loading…
Reference in New Issue
Block a user