use utimes() rather than obsolescent utime()
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
parent
cc8b6871a7
commit
a307af1af6
4 changed files with 13 additions and 17 deletions
|
@ -73,7 +73,7 @@ rm -f src.typos
|
|||
# don't allow obsolete functions
|
||||
#
|
||||
find $srcdir/.. '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \
|
||||
grep -E -e '\<(bcmp|bcopy|bzero|getwd|index|mktemp|rindex|utimes|sigblock|siggetmask|sigsetmask)\>[[:space:]]*\(' \
|
||||
grep -E -e '\<(bcmp|bcopy|bzero|getwd|index|mktemp|rindex|utime|sigblock|siggetmask|sigsetmask)\>[[:space:]]*\(' \
|
||||
| sed -e "s:^$srcdir/\.\./::g" > src.obsolete.funcs
|
||||
testing "Obsolete function usage" "cat src.obsolete.funcs" "" "" ""
|
||||
rm -f src.obsolete.funcs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue