about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation')
-rw-r--r--WWW/Library/Implementation/HTTCP.c2
-rw-r--r--WWW/Library/Implementation/HTTP.c2
-rw-r--r--WWW/Library/Implementation/HTTP.h4
-rw-r--r--WWW/Library/Implementation/www_tcp.h1
4 files changed, 3 insertions, 6 deletions
diff --git a/WWW/Library/Implementation/HTTCP.c b/WWW/Library/Implementation/HTTCP.c
index ac8f6096..70cee43f 100644
--- a/WWW/Library/Implementation/HTTCP.c
+++ b/WWW/Library/Implementation/HTTCP.c
@@ -1081,6 +1081,7 @@ PUBLIC struct hostent * LYGetHostByName ARGS1(
 		phost = gethostbyname(host);
 	} else {		/* for Windows NT */
 	    phost = (struct hostent *) NULL;
+	    donelookup = FALSE;
 	    hThread = CreateThread((void *)NULL, 4096UL,
 		(LPTHREAD_START_ROUTINE)_fork_func,
 		(void *)NULL, 0UL, (unsigned long *)&dwThreadID);
@@ -1088,7 +1089,6 @@ PUBLIC struct hostent * LYGetHostByName ARGS1(
 		MessageBox((void *)NULL, "CreateThread",
 			   "CreateThread Failed", 0L);
 
-	    donelookup = FALSE;
 	    while (!donelookup) {
 		if (HTCheckForInterrupt()) {
 		    /* Note that host is a character array and is not freed */
diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c
index f7a2dc9a..89aa7045 100644
--- a/WWW/Library/Implementation/HTTP.c
+++ b/WWW/Library/Implementation/HTTP.c
@@ -159,7 +159,7 @@ PUBLIC int ws_netread(int fd, char *buf, int len)
     HANDLE hThread;
     DWORD dwThreadID;
     DWORD exitcode = 0;
-    DWORD ret_val, val, process_time, now_TickCount, save_TickCount;
+    DWORD ret_val = -1, val, process_time, now_TickCount, save_TickCount;
 
     static recv_data_t para;
 
diff --git a/WWW/Library/Implementation/HTTP.h b/WWW/Library/Implementation/HTTP.h
index 1079557f..cd6925f2 100644
--- a/WWW/Library/Implementation/HTTP.h
+++ b/WWW/Library/Implementation/HTTP.h
@@ -24,10 +24,6 @@ extern char * redirecting_url;
 extern BOOL permanent_redirection;
 extern BOOL redirect_post_content;
 
-#ifdef _WINDOWS
-extern int ws_netread(int fd, char *buf, int len);
-#endif /* _WINDOWS */
-
 #endif /* HTTP_H */
 
 /*
diff --git a/WWW/Library/Implementation/www_tcp.h b/WWW/Library/Implementation/www_tcp.h
index d1be848c..48d34f9f 100644
--- a/WWW/Library/Implementation/www_tcp.h
+++ b/WWW/Library/Implementation/www_tcp.h
@@ -175,6 +175,7 @@ IBM-PC running Windows NT
 #undef NETWRITE
 #undef NETCLOSE
 #undef IOCTL
+extern int ws_netread(int fd, char *buf, int len);
 #define NETREAD(s,b,l)  ws_netread((s),(b),(l))	/* 1997/11/06 (Thu) */
 #define NETWRITE(s,b,l) send((s),(b),(l),0)
 #define NETCLOSE(s)     closesocket(s)