build-aux: only forbid gethostname in C files

This function is fine to use in other languages

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2022-01-07 16:29:36 +00:00
parent f1154a4825
commit 5d63c4e331

View File

@ -203,6 +203,7 @@ sc_prohibit_readlink:
sc_prohibit_gethostname:
@prohibit='gethostname *\(' \
in_vc_files='\.[ch]$$' \
halt='use virGetHostname, not gethostname' \
$(_sc_search_regexp)