summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'nanohttp/nanohttp-socket.c')
-rw-r--r--nanohttp/nanohttp-socket.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/nanohttp/nanohttp-socket.c b/nanohttp/nanohttp-socket.c
index 9b0e673..8ff722a 100644
--- a/nanohttp/nanohttp-socket.c
+++ b/nanohttp/nanohttp-socket.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: nanohttp-socket.c,v 1.9 2004/08/26 17:07:47 rans Exp $
+* $Id: nanohttp-socket.c,v 1.10 2004/08/30 07:55:42 snowdrop Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -82,14 +82,15 @@ FUNCTION: hsocket_init
----------------------------------------------------*/
int hsocket_init(hsocket_t *sock)
{
- /* nothing to init for unix sockets */
- /* just set the descriptor to -1 */
- *sock = -1;
#ifdef WIN32
// WSACleanup();
struct WSAData info;
WSAStartup(MAKEWORD(2,2), &info);
+#else
+ /* nothing to init for unix sockets */
#endif
+ /* just set the descriptor to -1 */
+ *sock = -1;
return 0;
}