clang-tidy: enable readability-math-missing-parentheses, adjust code

No functional changes.

Also:
- md4, md5: drop redundant parentheses from macro values.

Closes #20691
This commit is contained in:
Viktor Szakats 2026-02-23 00:59:57 +01:00
parent 29bca12978
commit 65262be0ab
No known key found for this signature in database
40 changed files with 85 additions and 80 deletions

View file

@ -180,7 +180,7 @@ static int rtspd_ProcessRequest(struct rtspd_httprequest *req)
return 1;
}
req->prot_version = prot_major * 10 + prot_minor;
req->prot_version = (prot_major * 10) + prot_minor;
/* find the last slash */
ptr = strrchr(doc, '/');

View file

@ -293,8 +293,8 @@ static curl_socket_t socks4(curl_socket_t fd,
static curl_socket_t sockit(curl_socket_t fd)
{
unsigned char buffer[2 * 256 + 16];
unsigned char response[2 * 256 + 16];
unsigned char buffer[(2 * 256) + 16];
unsigned char response[(2 * 256) + 16];
ssize_t rc;
unsigned char len;
unsigned char type;

View file

@ -386,7 +386,7 @@ static int sws_ProcessRequest(struct sws_httprequest *req)
if(fine) {
const char *ptr;
req->prot_version = prot_major * 10 + prot_minor;
req->prot_version = (prot_major * 10) + prot_minor;
/* find the last slash */
ptr = &httppath[npath];