From 5d63c4e331951ed7c97c5545f2a1b6269eaa73d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Fri, 7 Jan 2022 16:29:36 +0000 Subject: [PATCH] build-aux: only forbid gethostname in C files MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This function is fine to use in other languages Reviewed-by: Cole Robinson Reviewed-by: Ján Tomko Signed-off-by: Daniel P. Berrangé --- 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.39.5