summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-04-30 11:57:06 +0200
committerJim Meyering <meyering@redhat.com>2008-05-06 08:21:28 +0200
commitf02102211e3ead3e4318e88eb0f0bedd702bf0a2 (patch)
tree8cd266d0aed965bf798a41c8166da0ae84db2c97
parent209850fd7e1e89cf8937310878bd22d70e3588a5 (diff)
downloadcoreutils-f02102211e3ead3e4318e88eb0f0bedd702bf0a2.tar.xz
tests: detect and check more uses of strcmp
* maint.mk (sc_prohibit_strcmp): Relax regexp to recognize other formatting styles.
-rw-r--r--maint.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/maint.mk b/maint.mk
index e8671bd38..53a124d76 100644
--- a/maint.mk
+++ b/maint.mk
@@ -131,7 +131,7 @@ sc_prohibit_atoi_atof:
# Use STREQ rather than comparing strcmp == 0, or != 0.
sc_prohibit_strcmp:
- @grep -nE '! *str''cmp \(|\<str''cmp \([^)]+\) *==' \
+ @grep -nE '! *str''cmp *\(|\<str''cmp *\([^)]+\) *==' \
$$($(VC_LIST_EXCEPT)) && \
{ echo '$(ME): use STREQ in place of the above uses of str''cmp' \
1>&2; exit 1; } || :