From: Daniel P. Berrangé Date: Fri, 7 Jan 2022 16:29:36 +0000 (+0000) Subject: build-aux: only forbid gethostname in C files X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5d63c4e331951ed7c97c5545f2a1b6269eaa73d1;p=libvirt.git build-aux: only forbid gethostname in C files This function is fine to use in other languages Reviewed-by: Cole Robinson Reviewed-by: Ján Tomko Signed-off-by: Daniel P. Berrangé --- diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index 68cd9dff5f..e1d80bd536 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -203,6 +203,7 @@ sc_prohibit_readlink: sc_prohibit_gethostname: @prohibit='gethostname *\(' \ + in_vc_files='\.[ch]$$' \ halt='use virGetHostname, not gethostname' \ $(_sc_search_regexp)