提交 abb9a583 编写于 作者: J Jim Meyering

* Makefile.maint (sc_prohibit_strcmp): Also prohibit strncmp.

上级 b87f3000
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
......
......@@ -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; } || :
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册