tidy-up: avoid (()), clang-format fixes and more

- drop redundant parentheses from macro definitions.
- apply clang-format in some places missed earlier.
- wolfssl: fix a macro guard comment.
- curl_setup.h: drop empty lines
- FAQ: fix C formatting.

Closes #19854
This commit is contained in:
Viktor Szakats 2025-12-04 22:48:20 +01:00
parent 4e051ff550
commit af5def0738
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
13 changed files with 404 additions and 374 deletions

View file

@ -1157,7 +1157,7 @@ FAQ
struct MemoryStruct *mem = (struct MemoryStruct *)data;
mem->memory = (char *)realloc(mem->memory, mem->size + realsize + 1);
if (mem->memory) {
if(mem->memory) {
memcpy(&(mem->memory[mem->size]), ptr, realsize);
mem->size += realsize;
mem->memory[mem->size] = 0;