projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f516f94
)
COMSTACK: simplify tcpip_init a bit
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 24 Feb 2014 11:40:39 +0000
(12:40 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 24 Feb 2014 11:40:39 +0000
(12:40 +0100)
src/tcpip.c
patch
|
blob
|
history
diff --git
a/src/tcpip.c
b/src/tcpip.c
index
0d8eaeb
..
57f15af
100644
(file)
--- 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.