summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-03-31 17:32:11 +0000
committerJim Meyering <jim@meyering.net>2004-03-31 17:32:11 +0000
commit2d217a9c813e5b397c2564f92c6885488318a4a2 (patch)
tree892b41fb1cd2ca61736b64f12115824eede3ff1b
parentdee056cd1bd7946c7742eea5b6c447ea015c8f48 (diff)
downloadcoreutils-2d217a9c813e5b397c2564f92c6885488318a4a2.tar.xz
also check for atoll
-rw-r--r--Makefile.maint6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.maint b/Makefile.maint
index 08f9cb8da..e8abd6d9a 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -126,14 +126,14 @@ sc_space_tab:
{ echo '$(ME): found SPACE-TAB sequence; remove the SPACE' \
1>&2; exit 1; } || :
-# Don't use atoi, atof, or atol in `real' code.
+# Don't use atoi, atof, atol, atoll, or atoq in `real' code.
# They provide no error checking mechanism.
# Instead, use strto* functions.
sc_prohibit_atoi_atof:
@( cvsu --list ) > /dev/null 2>&1 || : && \
- grep '\<ato[fil]\>' \
+ grep -E '\<(ato[filq]|atoll)\>' \
$$(cvsu --list | grep -vEf .x-$@ ) && \
- { echo '$(ME): do not use atof, atoi, or atol' \
+ { echo '$(ME): do not use atof, atoi, atol, atoll, or atoq' \
1>&2; exit 1; } || :
# Using EXIT_SUCCESS as the first argument to error is misleading,