]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
syntax-check: Update list of gethostname exceptions
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 9 Mar 2021 14:20:57 +0000 (15:20 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Mar 2021 07:47:27 +0000 (08:47 +0100)
The only place where gethostname() is acceptable is in
virGetHostnameImpl() which lives in src/util/virutil.c.
Reflect this in the list of exceptions for the syntax-check rule.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
build-aux/syntax-check.mk

index 2f4f932a5b71dabdc2c948757647d458bbab1cc4..794ec326e44440e8aca72a1728abfe6f5e3549d3 100644 (file)
@@ -1910,7 +1910,7 @@ exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \
 exclude_file_name_regexp--sc_prohibit_fork_wrappers = \
   (^(src/(util/(vircommand|virdaemon)|lxc/lxc_controller)|tests/testutils)\.c$$)
 
-exclude_file_name_regexp--sc_prohibit_gethostname = ^src/util/vir(util|log)\.c$$
+exclude_file_name_regexp--sc_prohibit_gethostname = ^src/util/virutil\.c$$
 
 exclude_file_name_regexp--sc_prohibit_internal_functions = \
   ^src/(util/(viralloc|virutil|virfile)\.[hc]|esx/esx_vi\.c)$$