syntax: Replace _prohibit_regexp with _sc_search_regexp.
authorRichard Jones <rjones@redhat.com>
Fri, 10 Sep 2010 21:51:39 +0000 (22:51 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 23 Oct 2010 14:10:48 +0000 (15:10 +0100)
(cherry picked from commit 3d994f3d8e12356223d37c1b45ebe2eb39ef28a6)

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index d45ec88..eb95dd3 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -100,16 +100,16 @@ sc_avoid_ctype_macros:
                1>&2; exit 1; } || :
 
 sc_prohibit_virBufferAdd_with_string_literal:
-       @re='\<virBufferAdd *\([^,]+, *"[^"]'                           \
-       msg='use virBufferAddLit, not virBufferAdd, with a string literal' \
-         $(_prohibit_regexp)
+       @prohibit='\<virBufferAdd *\([^,]+, *"[^"]'                     \
+       halt='use virBufferAddLit, not virBufferAdd, with a string literal' \
+         $(_sc_search_regexp)
 
 # Not only do they fail to deal well with ipv6, but the gethostby*
 # functions are also not thread-safe.
 sc_prohibit_gethostby:
-       @re='\<gethostby(addr|name2?) *\('                              \
-       msg='use getaddrinfo, not gethostby*'                           \
-         $(_prohibit_regexp)
+       @prohibit='\<gethostby(addr|name2?) *\('                        \
+       halt='use getaddrinfo, not gethostby*'                          \
+         $(_sc_search_regexp)
 
 # Disallow trailing blank lines.
 sc_prohibit_trailing_blank_lines: