mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:43:41 +03:00
code: fix typos and style in comments
A few random typos, and minor whitespace cleanups, found in comments while reading code. Closes #1423
This commit is contained in:
parent
c25aba1254
commit
aaa7e05c78
3 changed files with 9 additions and 9 deletions
|
|
@ -1489,7 +1489,7 @@ static void http_connect(curl_socket_t *infdp,
|
|||
maxfd = clientfd[i];
|
||||
}
|
||||
if(poll_client_wr[i] && toc[i]) {
|
||||
/* unless told not to do so, monitor writeability
|
||||
/* unless told not to do so, monitor writability
|
||||
if there is data ready to be sent to client */
|
||||
FD_SET(clientfd[i], &output);
|
||||
if(clientfd[i] > maxfd)
|
||||
|
|
@ -1505,7 +1505,7 @@ static void http_connect(curl_socket_t *infdp,
|
|||
maxfd = serverfd[i];
|
||||
}
|
||||
if(poll_server_wr[i] && tos[i]) {
|
||||
/* unless told not to do so, monitor writeability
|
||||
/* unless told not to do so, monitor writability
|
||||
if there is data ready to be sent to server */
|
||||
FD_SET(serverfd[i], &output);
|
||||
if(serverfd[i] > maxfd)
|
||||
|
|
@ -1598,7 +1598,7 @@ static void http_connect(curl_socket_t *infdp,
|
|||
|
||||
/* ---------------------------------------------------------- */
|
||||
|
||||
/* react to tunnel endpoint readable/writeable notifications */
|
||||
/* react to tunnel endpoint readable/writable notifications */
|
||||
for(i = 0; i <= max_tunnel_idx; i++) {
|
||||
size_t len;
|
||||
if(clientfd[i] != CURL_SOCKET_BAD) {
|
||||
|
|
@ -1894,7 +1894,7 @@ static int service_connection(curl_socket_t msgsock, struct httprequest *req,
|
|||
while(!req->done_processing) {
|
||||
int rc = get_request(msgsock, req);
|
||||
if(rc <= 0) {
|
||||
/* Nothing further to read now (possibly because the socket was closed */
|
||||
/* Nothing further to read now, possibly because the socket was closed */
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
|
@ -2255,7 +2255,7 @@ int main(int argc, char *argv[])
|
|||
if(got_exit_signal)
|
||||
goto sws_cleanup;
|
||||
|
||||
/* Set up for select*/
|
||||
/* Set up for select */
|
||||
FD_ZERO(&input);
|
||||
FD_ZERO(&output);
|
||||
|
||||
|
|
@ -2281,7 +2281,7 @@ int main(int argc, char *argv[])
|
|||
goto sws_cleanup;
|
||||
|
||||
if(rc == 0) {
|
||||
/* Timed out - try again*/
|
||||
/* Timed out - try again */
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue