mirror of
https://github.com/curl/curl.git
synced 2026-08-05 12:06:15 +03:00
tidy-up: miscellaneous
- INSTALL-CMAKE.md: add missing periods, text fixes. - md4, md5: sync variables names. - curl_trc: sync an argument type. - docs/examples: sync debug/trace function copies, constify, tidy-ups. - replace commented code with `#if 0`. - drop redundant parenthesis (macro values, `return`, around single variables, function calls). - fix indentation, apply clang-format in places. Closes #20481
This commit is contained in:
parent
ca5efd02b6
commit
3003c32cb2
62 changed files with 291 additions and 281 deletions
10
lib/cookie.c
10
lib/cookie.c
|
|
@ -372,10 +372,10 @@ static bool invalid_octets(const char *ptr, size_t len)
|
|||
*/
|
||||
#define MAX_DATE_LENGTH 80
|
||||
|
||||
#define COOKIE_NAME 0
|
||||
#define COOKIE_VALUE 1
|
||||
#define COOKIE_NAME 0
|
||||
#define COOKIE_VALUE 1
|
||||
#define COOKIE_DOMAIN 2
|
||||
#define COOKIE_PATH 3
|
||||
#define COOKIE_PATH 3
|
||||
|
||||
#define COOKIE_PIECES 4 /* the list above */
|
||||
|
||||
|
|
@ -783,7 +783,7 @@ static bool is_public_suffix(struct Curl_easy *data,
|
|||
* dereference it.
|
||||
*/
|
||||
DEBUGF(infof(data, "PSL check set-cookie '%s' for domain=%s in %s",
|
||||
co->name, co->domain, domain));
|
||||
co->name, co->domain, domain));
|
||||
if(data && (domain && co->domain && !Curl_host_is_ipnum(co->domain))) {
|
||||
bool acceptable = FALSE;
|
||||
char lcase[256];
|
||||
|
|
@ -814,7 +814,7 @@ static bool is_public_suffix(struct Curl_easy *data,
|
|||
(void)co;
|
||||
(void)domain;
|
||||
DEBUGF(infof(data, "NO PSL to check set-cookie '%s' for domain=%s in %s",
|
||||
co->name, co->domain, domain));
|
||||
co->name, co->domain, domain));
|
||||
#endif
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue