From: Chris Lalancette Date: Wed, 23 Sep 2009 12:58:13 +0000 (+0200) Subject: Fix up "make syntax-check" after the tree restructuring. X-Git-Tag: v0.7.2~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b92587bc56daa83fc7cfbc16bcf7d47c72a151a3;p=thirdparty%2Flibvirt.git Fix up "make syntax-check" after the tree restructuring. Signed-off-by: Chris Lalancette --- diff --git a/.x-sc_prohibit_strncpy b/.x-sc_prohibit_strncpy new file mode 100644 index 0000000000..10bc29c178 --- /dev/null +++ b/.x-sc_prohibit_strncpy @@ -0,0 +1 @@ +src/util/util.c diff --git a/cfg.mk b/cfg.mk index 2d2dd7ec8e..c217332ac2 100644 --- a/cfg.mk +++ b/cfg.mk @@ -92,10 +92,9 @@ sc_prohibit_asprintf: $(_prohibit_regexp) sc_prohibit_strncpy: - @grep -nE 'strncpy *\(' \ - $$($(VC_LIST) | grep -v 'src/util.c') && \ - { echo '$(ME): use virStrncpy, not strncpy' \ - 1>&2; exit 1; } || : + @re='strncpy *\(' \ + msg='use virStrncpy, not strncpy' \ + $(_prohibit_regexp) sc_prohibit_VIR_ERR_NO_MEMORY: @re='\' \