]> xenbits.xensource.com Git - libvirt.git/commitdiff
* Makefile.maint (sc_prohibit_strcmp): Also prohibit strncmp.
authorJim Meyering <meyering@redhat.com>
Thu, 15 May 2008 07:12:43 +0000 (07:12 +0000)
committerJim Meyering <meyering@redhat.com>
Thu, 15 May 2008 07:12:43 +0000 (07:12 +0000)
ChangeLog
Makefile.maint

index 0999178eefbf8d9e911019603e464f7429d36f4f..abec731547ec87758252ca7b03b6802fbb2c8416 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu May 15 09:12:08 CEST 2008 Jim Meyering <meyering@redhat.com>
+
+       * Makefile.maint (sc_prohibit_strcmp): Also prohibit strncmp.
+
 Thu May 15 15:07:49 JST 2008 Atsushi SAKAI <sakaia@jp.fujitsu.com>
 
        * qemud/libvirtd.init.in: change libvirtd description
index 0f79ed78d376711c813375ac8f0a0e70c73b417e..a593ae27376c2a07e06c8e4bd1b6fe1582737805 100644 (file)
@@ -90,8 +90,9 @@ sc_prohibit_atoi_atof:
                1>&2; exit 1; } || :
 
 # Use STREQ rather than comparing strcmp == 0, or != 0.
+# Similarly, use STREQLEN or STRPREFIX rather than strncmp.
 sc_prohibit_strcmp:
-       @grep -nE '! *str''cmp *\(|\<str''cmp *\([^)]+\) *=='           \
+       @grep -nE '! *str''n?cmp *\(|\<str''n?cmp *\([^)]+\) *=='       \
            $$($(VC_LIST_EXCEPT)) &&                                    \
          { echo '$(ME): use STREQ in place of the above uses of str''cmp' \
                1>&2; exit 1; } || :