diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-07-04 09:01:39 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-07-04 09:02:18 +0200 |
commit | 689392ad1cf0b0abded13def5666785042e38590 (patch) | |
tree | cced7f3c1d24d9d30876cc91fe5a409f84d4104d | |
parent | f50124f56614d1c270bd11c7bf32ddc2a8322b7e (diff) | |
download | curl-bagder/configure-remove-unused-funcs.tar.gz |
configure: remove checks for 5 functions never usedbagder/configure-remove-unused-funcs
fork, getprotobyname, inet_addr, perror, uname
-rw-r--r-- | configure.ac | 7 | ||||
-rw-r--r-- | lib/connect.c | 13 |
2 files changed, 1 insertions, 19 deletions
diff --git a/configure.ac b/configure.ac index c999e7555..5104c9ecd 100644 --- a/configure.ac +++ b/configure.ac @@ -3281,23 +3281,18 @@ case $host in ;; esac -AC_CHECK_FUNCS([fork \ - geteuid \ +AC_CHECK_FUNCS([geteuid \ getpass_r \ getppid \ - getprotobyname \ getpwuid \ getpwuid_r \ getrlimit \ gettimeofday \ if_nametoindex \ - inet_addr \ - perror \ pipe \ setlocale \ setmode \ setrlimit \ - uname \ utime \ utimes ],[ diff --git a/lib/connect.c b/lib/connect.c index d4fd52b99..e959c1e9b 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -879,19 +879,6 @@ void Curl_tcpnodelay(struct connectdata *conn, curl_socket_t sockfd) curl_socklen_t onoff = (curl_socklen_t) 1; int level = IPPROTO_TCP; -#if 0 - /* The use of getprotobyname() is disabled since it isn't thread-safe on - numerous systems. On these getprotobyname_r() should be used instead, but - that exists in at least one 4 arg version and one 5 arg version, and - since the proto number rarely changes anyway we now just use the hard - coded number. The "proper" fix would need a configure check for the - correct function much in the same style the gethostbyname_r versions are - detected. */ - struct protoent *pe = getprotobyname("tcp"); - if(pe) - level = pe->p_proto; -#endif - #if defined(CURL_DISABLE_VERBOSE_STRINGS) (void) conn; #endif |