mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
clang-tidy: add more missing parentheses in macro values
Reported when running `HeaderFilterRegex: '.*'` in CI. Also replace an underscored symbol with a regular one in macro definition. Cherry-picked from #20720 Closes #20721
This commit is contained in:
parent
65f9426170
commit
3b9d8412c0
@ -78,7 +78,7 @@ struct cf_quic_ctx {
|
||||
};
|
||||
|
||||
#define H3_STREAM_CTX(ctx, data) \
|
||||
(data ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL)
|
||||
((data) ? Curl_uint32_hash_get(&(ctx)->streams, (data)->mid) : NULL)
|
||||
|
||||
CURLcode vquic_ctx_init(struct Curl_easy *data,
|
||||
struct cf_quic_ctx *qctx);
|
||||
|
||||
@ -50,8 +50,8 @@ struct dynbuf;
|
||||
|
||||
#ifdef USE_ECH
|
||||
#include "curlx/base64.h"
|
||||
#define ECH_ENABLED(__data__) \
|
||||
(__data__->set.tls_ech && !(__data__->set.tls_ech & CURLECH_DISABLE))
|
||||
#define ECH_ENABLED(data) \
|
||||
((data)->set.tls_ech && !((data)->set.tls_ech & CURLECH_DISABLE))
|
||||
#endif /* USE_ECH */
|
||||
|
||||
#define ALPN_ACCEPTED "ALPN: server accepted "
|
||||
|
||||
Loading…
Reference in New Issue
Block a user