mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:03:36 +03:00
tidy-up: miscellaneous
- CMake/CurlTests.c: sync indent with rest of file and most of code. - cmake: sync term in `_CURL_PREFILL` description with rest of code. - curl_setup.h: document function relying on `_CRT_SECURE_NO_WARNINGS`. - tests/http/scorecard.py: typo in message. - 'Quiche' -> 'quiche'. - fix comment and formatting nits. Closes #22378
This commit is contained in:
parent
932e63aab9
commit
8734b08883
10 changed files with 37 additions and 41 deletions
|
|
@ -90,7 +90,7 @@
|
|||
/* Disable Visual Studio warnings: 4127 "conditional expression is constant" */
|
||||
#pragma warning(disable:4127)
|
||||
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||
#define _CRT_SECURE_NO_WARNINGS /* for getenv(), sscanf() */
|
||||
#define _CRT_SECURE_NO_WARNINGS /* for getenv(), sscanf(), vsnprintf() */
|
||||
#endif
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ static bool fix_excessive_path(const TCHAR *in, TCHAR **out)
|
|||
const wchar_t *in_w;
|
||||
wchar_t *fbuf = NULL;
|
||||
|
||||
/* MS documented "approximate" limit for the maximum path length */
|
||||
/* MS-documented "approximate" limit for the maximum path length */
|
||||
const size_t max_path_len = 32767;
|
||||
|
||||
#ifndef _UNICODE
|
||||
|
|
|
|||
|
|
@ -373,8 +373,8 @@ static CURLcode ssh_knownhost(struct Curl_easy *data,
|
|||
(conn->origin->port != PORT_SSH) ?
|
||||
conn->origin->port : -1,
|
||||
remotekey, keylen,
|
||||
LIBSSH2_KNOWNHOST_TYPE_PLAIN|
|
||||
LIBSSH2_KNOWNHOST_KEYENC_RAW|
|
||||
LIBSSH2_KNOWNHOST_TYPE_PLAIN |
|
||||
LIBSSH2_KNOWNHOST_KEYENC_RAW |
|
||||
keybit,
|
||||
&host);
|
||||
|
||||
|
|
|
|||
|
|
@ -1368,7 +1368,7 @@ static CURLcode schannel_connect_step2(struct Curl_cfilter *cf,
|
|||
/* check if the handshake needs to be continued */
|
||||
result = CURLE_OK;
|
||||
for(i = 0; i < 3; i++) {
|
||||
/* search for handshake tokens that need to be send */
|
||||
/* search for handshake tokens that need to be sent */
|
||||
if(outbuf[i].BufferType == SECBUFFER_TOKEN && outbuf[i].cbBuffer > 0) {
|
||||
size_t written = 0;
|
||||
DEBUGF(infof(data, "schannel: sending next handshake data: "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue