mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-14 01:13:45 -06:00
tests: recognize more uses of strcmp.
* Makefile.maint (sc_prohibit_strcmp): Relax regexp.
This commit is contained in:
parent
b1f791adb0
commit
c3626941c7
@ -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.
|
||||
|
@ -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; } || :
|
||||
|
Loading…
Reference in New Issue
Block a user