]> xenbits.xensource.com Git - libvirt.git/commitdiff
cfg.mk: drop redundant sc_prohibit_gethostby
authorJán Tomko <jtomko@redhat.com>
Tue, 26 Jul 2016 11:18:43 +0000 (13:18 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 18 Aug 2016 11:37:08 +0000 (13:37 +0200)
Both gethostbyaddr and gethostbyname* are already checked
by sc_prohibit_nonreentrant.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 0604d69b35c7f27a9d7b83f232e14a820d09e388..9f236c2c8b759c0a1597c959e49def2fede7d779 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -520,13 +520,6 @@ sc_forbid_manual_xml_indent:
        halt='use virBufferAdjustIndent instead of spaces when indenting xml' \
          $(_sc_search_regexp)
 
-# Not only do they fail to deal well with ipv6, but the gethostby*
-# functions are also not thread-safe.
-sc_prohibit_gethostby:
-       @prohibit='\<gethostby(addr|name2?) *\('                        \
-       halt='use getaddrinfo, not gethostby*'                          \
-         $(_sc_search_regexp)
-
 # dirname and basename from <libgen.h> are not required to be thread-safe
 sc_prohibit_libgen:
        @prohibit='( (base|dir)name *\(|include .libgen\.h)'            \
@@ -1192,8 +1185,6 @@ exclude_file_name_regexp--sc_prohibit_strncpy = ^src/util/virstring\.c$$
 
 exclude_file_name_regexp--sc_prohibit_strtol = ^examples/.*$$
 
-exclude_file_name_regexp--sc_prohibit_gethostby = ^docs/nss.html.in$$
-
 exclude_file_name_regexp--sc_prohibit_xmlGetProp = ^src/util/virxml\.c$$
 
 exclude_file_name_regexp--sc_prohibit_xmlURI = ^src/util/viruri\.c$$