mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:53:37 +03:00
code: language cleanup in comments
Based on the standards and guidelines we use for our documentation. - expand contractions (they're => they are etc) - host name = > hostname - file name => filename - user name = username - man page => manpage - run-time => runtime - set-up => setup - back-end => backend - a HTTP => an HTTP - Two spaces after a period => one space after period Closes #14073
This commit is contained in:
parent
9b683577e1
commit
c074ba64a8
213 changed files with 1719 additions and 1715 deletions
22
lib/telnet.c
22
lib/telnet.c
|
|
@ -798,12 +798,12 @@ static CURLcode check_telnet_options(struct Curl_easy *data)
|
|||
struct TELNET *tn = data->req.p.telnet;
|
||||
CURLcode result = CURLE_OK;
|
||||
|
||||
/* Add the user name as an environment variable if it
|
||||
/* Add the username as an environment variable if it
|
||||
was given on the command line */
|
||||
if(data->state.aptr.user) {
|
||||
char buffer[256];
|
||||
if(str_is_nonascii(data->conn->user)) {
|
||||
DEBUGF(infof(data, "set a non ASCII user name in telnet"));
|
||||
DEBUGF(infof(data, "set a non ASCII username in telnet"));
|
||||
return CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
}
|
||||
msnprintf(buffer, sizeof(buffer), "USER,%s", data->conn->user);
|
||||
|
|
@ -1191,12 +1191,12 @@ process_iac:
|
|||
if(c != CURL_SE) {
|
||||
if(c != CURL_IAC) {
|
||||
/*
|
||||
* This is an error. We only expect to get "IAC IAC" or "IAC SE".
|
||||
* Several things may have happened. An IAC was not doubled, the
|
||||
* This is an error. We only expect to get "IAC IAC" or "IAC SE".
|
||||
* Several things may have happened. An IAC was not doubled, the
|
||||
* IAC SE was left off, or another option got inserted into the
|
||||
* suboption are all possibilities. If we assume that the IAC was
|
||||
* suboption are all possibilities. If we assume that the IAC was
|
||||
* not doubled, and really the IAC SE was left off, we could get
|
||||
* into an infinite loop here. So, instead, we terminate the
|
||||
* into an infinite loop here. So, instead, we terminate the
|
||||
* suboption, and process the partial suboption if we can.
|
||||
*/
|
||||
CURL_SB_ACCUM(tn, CURL_IAC);
|
||||
|
|
@ -1370,7 +1370,7 @@ static CURLcode telnet_do(struct Curl_easy *data, bool *done)
|
|||
else use the old WaitForMultipleObjects() way */
|
||||
if(GetFileType(stdin_handle) == FILE_TYPE_PIPE ||
|
||||
data->set.is_fread_set) {
|
||||
/* Don't wait for stdin_handle, just wait for event_handle */
|
||||
/* Do not wait for stdin_handle, just wait for event_handle */
|
||||
obj_count = 1;
|
||||
/* Check stdin_handle per 100 milliseconds */
|
||||
wait_timeout = 100;
|
||||
|
|
@ -1470,7 +1470,7 @@ static CURLcode telnet_do(struct Curl_easy *data, bool *done)
|
|||
if(events.lNetworkEvents & FD_READ) {
|
||||
/* read data from network */
|
||||
result = Curl_xfer_recv(data, buffer, sizeof(buffer), &nread);
|
||||
/* read would've blocked. Loop again */
|
||||
/* read would have blocked. Loop again */
|
||||
if(result == CURLE_AGAIN)
|
||||
break;
|
||||
/* returned not-zero, this an error */
|
||||
|
|
@ -1492,7 +1492,7 @@ static CURLcode telnet_do(struct Curl_easy *data, bool *done)
|
|||
}
|
||||
|
||||
/* Negotiate if the peer has started negotiating,
|
||||
otherwise don't. We don't want to speak telnet with
|
||||
otherwise do not. We do not want to speak telnet with
|
||||
non-telnet servers, like POP or SMTP. */
|
||||
if(tn->please_negotiate && !tn->already_negotiated) {
|
||||
negotiate(data);
|
||||
|
|
@ -1556,7 +1556,7 @@ static CURLcode telnet_do(struct Curl_easy *data, bool *done)
|
|||
if(pfd[0].revents & POLLIN) {
|
||||
/* read data from network */
|
||||
result = Curl_xfer_recv(data, buffer, sizeof(buffer), &nread);
|
||||
/* read would've blocked. Loop again */
|
||||
/* read would have blocked. Loop again */
|
||||
if(result == CURLE_AGAIN)
|
||||
break;
|
||||
/* returned not-zero, this an error */
|
||||
|
|
@ -1588,7 +1588,7 @@ static CURLcode telnet_do(struct Curl_easy *data, bool *done)
|
|||
}
|
||||
|
||||
/* Negotiate if the peer has started negotiating,
|
||||
otherwise don't. We don't want to speak telnet with
|
||||
otherwise do not. We do not want to speak telnet with
|
||||
non-telnet servers, like POP or SMTP. */
|
||||
if(tn->please_negotiate && !tn->already_negotiated) {
|
||||
negotiate(data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue