about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTTP.c
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation/HTTP.c')
-rw-r--r--WWW/Library/Implementation/HTTP.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c
index 0328b319..7aa30de8 100644
--- a/WWW/Library/Implementation/HTTP.c
+++ b/WWW/Library/Implementation/HTTP.c
@@ -209,7 +209,7 @@ static int ws_read(int fd, char *buf, int len)
     return res;
 }
 
-static void _thread_func(void *p)
+static DWORD __stdcall _thread_func(void *p)
 {
     int i, val, ret;
     recv_data_t *q = (recv_data_t *) p;
@@ -232,7 +232,7 @@ static void _thread_func(void *p)
 	ret = val;
     }
 
-    ExitThread((DWORD) ret);
+    return ((DWORD) ret);
 }
 
 /* The same like read, but takes care of EINTR and uses select to
@@ -267,8 +267,8 @@ int ws_netread(int fd, char *buf, int len)
     ws_read_per_sec = 0;
     save_TickCount = GetTickCount();
 
-    hThread = CreateThread((void *) NULL, STACK_SIZE,
-			   (LPTHREAD_START_ROUTINE) _thread_func,
+    hThread = CreateThread(NULL, STACK_SIZE,
+			   _thread_func,
 			   (void *) &para, 0UL, &dwThreadID);
 
     if (hThread == 0) {