Code

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)
commitb7cc9f82594a2d5fe12867c515d86d91ecedad8f
treeeecc9024254902cb3c6030d5d8a382afc9b8cfc4
parent1fdffa616119aeb607e211a77688c9bc3883ca87
Refactor winsock initialization into a separate function

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>
compat/mingw.c