mirror of
https://github.com/curl/curl.git
synced 2026-07-29 02:43:06 +03:00
tidy-up: apply clang-format fixes
To lib, vtls/vauth, vtls/vquic, lib/vtls.
Also:
- unit3400: drop redundant `(void)arg`.
Follow-up to e78b1b3ecc #21153
- fix comment typos.
Closes #21786
This commit is contained in:
parent
cdb266738b
commit
59320082b0
50 changed files with 263 additions and 289 deletions
|
|
@ -81,8 +81,7 @@ static void tcpnodelay(struct Curl_cfilter *cf,
|
|||
int level = IPPROTO_TCP;
|
||||
VERBOSE(char buffer[STRERROR_LEN]);
|
||||
|
||||
if(setsockopt(sockfd, level, TCP_NODELAY,
|
||||
(void *)&onoff, sizeof(onoff)) < 0)
|
||||
if(setsockopt(sockfd, level, TCP_NODELAY, (void *)&onoff, sizeof(onoff)) < 0)
|
||||
CURL_TRC_CF(data, cf, "Could not set TCP_NODELAY: %s",
|
||||
curlx_strerror(SOCKERRNO, buffer, sizeof(buffer)));
|
||||
#else
|
||||
|
|
@ -92,8 +91,8 @@ static void tcpnodelay(struct Curl_cfilter *cf,
|
|||
#endif
|
||||
}
|
||||
|
||||
#if defined(USE_WINSOCK) || defined(TCP_KEEPIDLE) || \
|
||||
defined(TCP_KEEPALIVE) || defined(TCP_KEEPALIVE_THRESHOLD) || \
|
||||
#if defined(USE_WINSOCK) || defined(TCP_KEEPIDLE) || \
|
||||
defined(TCP_KEEPALIVE) || defined(TCP_KEEPALIVE_THRESHOLD) || \
|
||||
defined(TCP_KEEPINTVL) || defined(TCP_KEEPALIVE_ABORT_THRESHOLD)
|
||||
#if defined(USE_WINSOCK) || \
|
||||
(defined(__sun) && !defined(TCP_KEEPIDLE)) || \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue