From d0d5661addd02d3aca9e543457f962eacae704a2 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Wed, 21 Nov 2007 22:48:07 +0100 Subject: [PATCH] Revert Windows specific code related to Winsock. These things are now hidden behind a compatibility layer. --- connect.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/connect.c b/connect.c index 0f10c40652..82fb62b080 100644 --- a/connect.c +++ b/connect.c @@ -345,23 +345,7 @@ static int git_tcp_connect_sock(char *host, int flags) static void git_tcp_connect(int fd[2], char *host, int flags) { -#ifndef __MINGW32__ int sockfd = git_tcp_connect_sock(host, flags); -#else - int sockfd; - WSADATA wsa; - - if (WSAStartup(MAKEWORD(2,2), &wsa)) - die("unable to initialize winsock subsystem, error %d", - WSAGetLastError()); - atexit((void(*)(void)) WSACleanup); - - sockfd = git_tcp_connect_sock(host, flags); - /* convert into a file descriptor */ - if ((sockfd = _open_osfhandle(sockfd, O_RDWR|O_BINARY)) < 0) - die("unable to make a socket file descriptor: %s", - strerror(errno)); -#endif fd[0] = sockfd; fd[1] = dup(sockfd);