diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2005-01-02 23:49:58 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2005-01-02 23:49:58 -0500 |
commit | 1fc1d8afcb5b9947e2b9665514dbfd1e86c0bf3f (patch) | |
tree | a83fd699321c8545516d56abcda6c9718fd1f4fb /WWW/Library/Implementation/HTTCP.c | |
parent | bed9a2c79bfdde6e4ec89d9d02a5d6e88ae12f79 (diff) | |
download | lynx-snapshots-1fc1d8afcb5b9947e2b9665514dbfd1e86c0bf3f.tar.gz |
snapshot of project "lynx", label v2-8-6dev_10
Diffstat (limited to 'WWW/Library/Implementation/HTTCP.c')
-rw-r--r-- | WWW/Library/Implementation/HTTCP.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/WWW/Library/Implementation/HTTCP.c b/WWW/Library/Implementation/HTTCP.c index fb55e185..5b938571 100644 --- a/WWW/Library/Implementation/HTTCP.c +++ b/WWW/Library/Implementation/HTTCP.c @@ -943,10 +943,10 @@ LYNX_HOSTENT *LYGetHostByName(char *str) */ #ifdef SOCKS if (socks_flag) - selret = Rselect(pfd[0] + 1, (void *) &readfds, NULL, NULL, &one_second); + selret = Rselect(pfd[0] + 1, &readfds, NULL, NULL, &one_second); else #endif /* SOCKS */ - selret = select(pfd[0] + 1, (void *) &readfds, NULL, NULL, &one_second); + selret = select(pfd[0] + 1, &readfds, NULL, NULL, &one_second); if ((selret > 0) && FD_ISSET(pfd[0], &readfds)) { /* @@ -1359,11 +1359,11 @@ static LYNX_ADDRINFO *HTGetAddrInfo(const char *str, LYNX_ADDRINFO hints, *res; int error; char *p; - char *s; + char *s = NULL; char *host, *port; char pbuf[80]; - s = strdup(str); + StrAllocCopy(s, str); if (s[0] == '[' && (p = strchr(s, ']')) != NULL) { *p++ = '\0'; @@ -1715,12 +1715,12 @@ int HTDoConnect(const char *url, #ifdef SOCKS if (socks_flag) ret = Rselect((unsigned) *s + 1, NULL, - (void *) &writefds, NULL, &select_timeout); + &writefds, NULL, &select_timeout); else #endif /* SOCKS */ ret = select((unsigned) *s + 1, NULL, - (void *) &writefds, + &writefds, NULL, &select_timeout); @@ -1992,11 +1992,11 @@ int HTDoRead(int fildes, #ifdef SOCKS if (socks_flag) ret = Rselect((unsigned) fildes + 1, - (void *) &readfds, NULL, NULL, &select_timeout); + &readfds, NULL, NULL, &select_timeout); else #endif /* SOCKS */ ret = select((unsigned) fildes + 1, - (void *) &readfds, NULL, NULL, &select_timeout); + &readfds, NULL, NULL, &select_timeout); } while ((ret == -1) && (errno == EINTR)); if (ret < 0) { |