mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:43:31 +03:00
tidy-up: docs, comments, typos, whitespace
- GHA/windows: mention `IgnoreStandardErrorWarningFormat=true` in comment. - cmake: fix MIT/GNU GSS order in messages. - drop some exclamation marks from messages. - drop redundant ending newlines from messages. - fold/unfold where possible. - fix indent, whitespace, typos and other nits. Closes #22185
This commit is contained in:
parent
15bd6c5d4c
commit
397b8f0ec6
47 changed files with 157 additions and 150 deletions
|
|
@ -722,7 +722,7 @@ static void read_instructions(void)
|
|||
rc = buf[0] ? 0 : 1;
|
||||
}
|
||||
if(rc != 1) {
|
||||
logmsg("Bad line in %s: '%s'\n", file, buf);
|
||||
logmsg("Bad line in %s: '%s'", file, buf);
|
||||
}
|
||||
else if(rtype) {
|
||||
logmsg("added %s record via '%s'", rtype, buf);
|
||||
|
|
|
|||
|
|
@ -738,7 +738,7 @@ static int rtspd_send_doc(curl_socket_t sock, struct rtspd_httprequest *req)
|
|||
break;
|
||||
case DOCNUMBER_404:
|
||||
default:
|
||||
logmsg("Replying to with a 404");
|
||||
logmsg("Replying with a 404");
|
||||
if(req->protocol == RPROT_HTTP) {
|
||||
buffer = doc404_HTTP;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -721,7 +721,7 @@ static int sws_ProcessRequest(struct sws_httprequest *req)
|
|||
test case send a rejection before any such data has been sent. Test case
|
||||
154 uses this.*/
|
||||
if(req->auth_req && !req->auth) {
|
||||
logmsg("Return early due to auth requested by none provided");
|
||||
logmsg("Return early due to auth requested but none provided");
|
||||
return 1; /* done */
|
||||
}
|
||||
|
||||
|
|
@ -813,7 +813,7 @@ static int sws_send_doc(curl_socket_t sock, struct sws_httprequest *req)
|
|||
break;
|
||||
case DOCNUMBER_404:
|
||||
default:
|
||||
logmsg("Replying to with a 404");
|
||||
logmsg("Replying with a 404");
|
||||
buffer = doc404;
|
||||
break;
|
||||
}
|
||||
|
|
@ -1893,11 +1893,11 @@ static int service_connection(curl_socket_t *msgsock,
|
|||
/* if we got a CONNECT, loop and get another request as well! */
|
||||
|
||||
if(req->open) {
|
||||
logmsg("=> persistent connection request ended, awaits new request\n");
|
||||
logmsg("=> persistent connection request ended, awaits new request");
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
logmsg("=> NOT a persistent connection, close close CLOSE\n");
|
||||
logmsg("=> NOT a persistent connection, close close CLOSE");
|
||||
}
|
||||
|
||||
return -1;
|
||||
|
|
@ -2036,7 +2036,7 @@ static int test_sws(int argc, const char *argv[])
|
|||
opt = argv[arg];
|
||||
if(curlx_str_number(&opt, &num, 0xffff)) {
|
||||
fprintf(stderr, "sws: invalid --keepalive argument (%s), must "
|
||||
"be number of seconds\n", argv[arg]);
|
||||
"be a number of seconds\n", argv[arg]);
|
||||
return 0;
|
||||
}
|
||||
keepalive_secs = (unsigned short)num;
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ static void nak(int error)
|
|||
memcpy(tp->th_msg, pe->e_msg, length + 1);
|
||||
length += 5;
|
||||
if(swrite(peer, &trsbuf.storage[0], length) != length)
|
||||
logmsg("nak: fail\n");
|
||||
logmsg("nak: fail");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -336,23 +336,18 @@ typedef void (*SIGHANDLER_T)(int);
|
|||
#ifdef SIGHUP
|
||||
static SIGHANDLER_T old_sighup_handler = SIG_ERR;
|
||||
#endif
|
||||
|
||||
#ifdef SIGPIPE
|
||||
static SIGHANDLER_T old_sigpipe_handler = SIG_ERR;
|
||||
#endif
|
||||
|
||||
#ifdef SIGALRM
|
||||
static SIGHANDLER_T old_sigalrm_handler = SIG_ERR;
|
||||
#endif
|
||||
|
||||
#ifdef SIGINT
|
||||
static SIGHANDLER_T old_sigint_handler = SIG_ERR;
|
||||
#endif
|
||||
|
||||
#ifdef SIGTERM
|
||||
static SIGHANDLER_T old_sigterm_handler = SIG_ERR;
|
||||
#endif
|
||||
|
||||
#if defined(SIGBREAK) && defined(_WIN32)
|
||||
static SIGHANDLER_T old_sigbreak_handler = SIG_ERR;
|
||||
#endif
|
||||
|
|
@ -502,8 +497,8 @@ static LRESULT CALLBACK main_window_proc(HWND hwnd, UINT uMsg,
|
|||
}
|
||||
return DefWindowProc(hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
/* Window message queue loop for hidden main window, details see above.
|
||||
*/
|
||||
|
||||
/* Window message queue loop for hidden main window, details see above. */
|
||||
static DWORD WINAPI main_window_loop(void *lpParameter)
|
||||
{
|
||||
WNDCLASS wc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue