]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: recognize more uses of strcmp.
authorJim Meyering <meyering@redhat.com>
Tue, 29 Apr 2008 14:25:19 +0000 (14:25 +0000)
committerJim Meyering <meyering@redhat.com>
Tue, 29 Apr 2008 14:25:19 +0000 (14:25 +0000)
* Makefile.maint (sc_prohibit_strcmp): Relax regexp.

ChangeLog
Makefile.maint

index f5e10e028ea69ef255fd17b4a39b7b50006012d9..4f2a301135fc95a6e2200af00606ffa745db347f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,9 @@ Tue Apr 29 09:46:00 EST 2008 Daniel P. Berrange <berrange@redhat.com>
 
 Tue Apr 29 15:20:12 CEST 2008 Jim Meyering <meyering@redhat.com>
 
+       Recognize more uses of strcmp.
+       * Makefile.maint (sc_prohibit_strcmp): Relax regexp.
+
        Avoid "make syntax-check" failures.
        * src/memory.c: Include "config.h".
        Remove trailing blanks.
index b864455b4b4df1a8b055956aed600cb1201f7345..ddf42bc68937700dc267cc3d78609fe962932424 100644 (file)
@@ -91,7 +91,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; } || :