diff --git a/src/util/winsock_nt.c b/src/util/winsock_nt.c index e2e308b767..075a687430 100644 --- a/src/util/winsock_nt.c +++ b/src/util/winsock_nt.c @@ -25,18 +25,13 @@ RCSID * * Returns 0 on success, -1 on error. */ -static int once = 1; - int afs_winsockInit(void) { - if (once) { int code; WSADATA data; WORD sockVersion; - once = 0; - sockVersion = 2; code = WSAStartup(sockVersion, &data); if (code) @@ -44,7 +39,6 @@ afs_winsockInit(void) if (data.wVersion != 2) return -1; - } return 0; } @@ -52,7 +46,6 @@ void afs_winsockCleanup(void) { WSACleanup(); - once = 0; } int