diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2000-04-14 02:50:19 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2000-04-14 02:50:19 -0400 |
commit | b232e99a8dcdb705a65957d058ae99b12d2f6616 (patch) | |
tree | 05d3038c9d7796e5e3bece88ae1ebc32735a4897 /WWW/Library/Implementation | |
parent | c834365894d03f15106f5e08f7266213d7514abc (diff) | |
download | lynx-snapshots-b232e99a8dcdb705a65957d058ae99b12d2f6616.tar.gz |
snapshot of project "lynx", label v2-8-3pre_5
Diffstat (limited to 'WWW/Library/Implementation')
-rw-r--r-- | WWW/Library/Implementation/HTTCP.c | 2 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTTP.c | 2 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTTP.h | 4 | ||||
-rw-r--r-- | WWW/Library/Implementation/www_tcp.h | 1 |
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) |