[libvirt PATCH v2 01/12] build-aux: only forbid gethostname in C files
Daniel P. Berrangé
berrange at redhat.com
Wed Oct 19 10:17:01 UTC 2022
This function is fine to use in other languages
Signed-off-by: Daniel P. Berrangé <berrange at 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 e35c2be734..8dc7495c45 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
More information about the libvir-list
mailing list