diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-07-04 09:01:39 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-07-04 11:32:25 +0200 |
commit | 909a5bee81a32ceecbf23a15fd8a48879a84b6dc (patch) | |
tree | 5cf4a7ba688d78c87aac5758650e1fb7bbdcddbe /lib/connect.c | |
parent | 7121a994dd7134ce71aa341511f8468674d14ffd (diff) | |
download | curl-909a5bee81a32ceecbf23a15fd8a48879a84b6dc.tar.gz |
configure: remove checks for 5 functions never used
fork, getprotobyname, inet_addr, perror, uname
closes #1638
Diffstat (limited to 'lib/connect.c')
-rw-r--r-- | lib/connect.c | 13 |
1 files changed, 0 insertions, 13 deletions
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 |