diff options
author | Jim Meyering <jim@meyering.net> | 2004-03-31 17:32:11 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-03-31 17:32:11 +0000 |
commit | 2d217a9c813e5b397c2564f92c6885488318a4a2 (patch) | |
tree | 892b41fb1cd2ca61736b64f12115824eede3ff1b | |
parent | dee056cd1bd7946c7742eea5b6c447ea015c8f48 (diff) | |
download | coreutils-2d217a9c813e5b397c2564f92c6885488318a4a2.tar.xz |
also check for atoll
-rw-r--r-- | Makefile.maint | 6 |
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, |