Refactor winsock initialization into a separate function
authorMartin Storsjö <martin@martin.st>
Mon, 23 Nov 2009 22:55:12 +0000 (00:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Nov 2009 08:57:39 +0000 (00:57 -0800)
The winsock library must be initialized. Since gethostbyname() is the
first function that calls into winsock, it was overridden to do the
initialization. This refactoring helps the next patch, where other
functions can be called earlier.

Signed-off-by: Martin Storsjo <martin@martin.st>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found