X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftcpip.c;h=57f15af2459dab06ca1da257b402282d695d6df6;hb=becf0d3294d52943303c8b3646f99260912c6f4b;hp=0d8eaebbcf4969fdfdee50e0a7f6a03f24a6aff9;hpb=ebcb0cd09361a4b814ad8b7e629938c474af0be2;p=yaz-moved-to-github.git diff --git a/src/tcpip.c b/src/tcpip.c index 0d8eaeb..57f15af 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -134,11 +134,13 @@ typedef struct tcpip_state int connect_response_len; } tcpip_state; -#ifdef WIN32 static int tcpip_init(void) { +#ifdef WIN32 static int initialized = 0; +#endif yaz_init_globals(); +#ifdef WIN32 if (!initialized) { WORD requested; @@ -149,15 +151,9 @@ static int tcpip_init(void) return 0; initialized = 1; } +#endif return 1; } -#else -static int tcpip_init(void) -{ - yaz_init_globals(); - return 1; -} -#endif /* * This function is always called through the cs_create() macro.