From c55c0e736926178d317027fb8c938c266d7b0ea3 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 2 Feb 2009 09:37:08 +0100 Subject: [PATCH] maint: tighten atoi/atof-prohibiting regexp, clean up .x-sc- file * maint.mk (sc_prohibit_atoi_atof): Require "(" after token. * .x-sc_prohibit_atoi_atof: Remove names that no longer contain a match. --- .x-sc_prohibit_atoi_atof | 5 ----- maint.mk | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.x-sc_prohibit_atoi_atof b/.x-sc_prohibit_atoi_atof index 5aa76c118c..f66450ef30 100644 --- a/.x-sc_prohibit_atoi_atof +++ b/.x-sc_prohibit_atoi_atof @@ -1,6 +1 @@ -ChangeLog -^TODO$ ^lib/euidaccess-stat\.c$ -^maint\.mk$ -^doc/coreutils.texi$ -^tests/misc/stty-invalid$ diff --git a/maint.mk b/maint.mk index 5271c25f17..72b986c3fc 100644 --- a/maint.mk +++ b/maint.mk @@ -138,7 +138,7 @@ sc_space_tab: # They provide no error checking mechanism. # Instead, use strto* functions. sc_prohibit_atoi_atof: - @re='\<([fs]?scanf|ato([filq]|ll))\>' \ + @re='\<([fs]?scanf|ato([filq]|ll)) *\(' \ msg='do not use *scan''f, ato''f, ato''i, ato''l, ato''ll or ato''q' \ $(_prohibit_regexp) -- 2.47.3