tidy-up: use uppercase TRUE/FALSE where missing

Keep it only in external API calls and C++ code.

Also:
- curlx/fopen: replace with `!!`.

Spotted by GitHub Code Quality in cf-socket.c.

Closes #21925
This commit is contained in:
Viktor Szakats 2026-06-09 12:09:46 +02:00
parent 9dcc57b801
commit 847aac066d
No known key found for this signature in database
23 changed files with 90 additions and 91 deletions

View file

@ -2176,10 +2176,10 @@ static CURLcode cf_tcp_accept_connect(struct Curl_cfilter *cf,
int error = 0;
/* activate callback for setting socket options */
Curl_set_in_callback(data, true);
Curl_set_in_callback(data, TRUE);
error = data->set.fsockopt(data->set.sockopt_client,
ctx->sock, CURLSOCKTYPE_ACCEPT);
Curl_set_in_callback(data, false);
Curl_set_in_callback(data, FALSE);
if(error)
return CURLE_ABORTED_BY_CALLBACK;