[libvirt PATCH v3 01/12] build-aux: only forbid gethostname in C files

Daniel P. Berrangé posted 12 patches 3 years, 3 months ago
There is a newer version of this series
[libvirt PATCH v3 01/12] build-aux: only forbid gethostname in C files
Posted by Daniel P. Berrangé 3 years, 3 months ago
This function is fine to use in other languages

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
 build-aux/syntax-check.mk | 1 +
 1 file changed, 1 insertion(+)

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)
 
-- 
2.37.3

Re: [libvirt PATCH v3 01/12] build-aux: only forbid gethostname in C files
Posted by Ján Tomko 3 years, 3 months ago
On a Wednesday in 2022, Daniel P. Berrangé wrote:
>This function is fine to use in other languages
>
>Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
>---
> build-aux/syntax-check.mk | 1 +
> 1 file changed, 1 insertion(+)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano