mirror of
https://github.com/curl/curl.git
synced 2026-08-25 16:33:38 +03:00
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:
parent
29bca12978
commit
65262be0ab
40 changed files with 85 additions and 80 deletions
|
|
@ -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, '/');
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue