mirror of
https://github.com/curl/curl.git
synced 2026-07-06 00:17: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
|
|
@ -2880,7 +2880,7 @@ static ParameterError opt_string(struct OperationConfig *config,
|
|||
/* detect e2 80 80 - e2 80 ff */
|
||||
static bool has_leading_unicode(const unsigned char *arg)
|
||||
{
|
||||
return ((arg[0] == 0xe2) && (arg[1] == 0x80) && (arg[2] & 0x80));
|
||||
return (arg[0] == 0xe2) && (arg[1] == 0x80) && (arg[2] & 0x80);
|
||||
}
|
||||
|
||||
/* the longest command line option, excluding the leading -- */
|
||||
|
|
@ -3081,7 +3081,7 @@ ParameterError parse_args(int argc, argv_item_t argv[])
|
|||
}
|
||||
|
||||
err = getparameter(orig_opt, nextarg, &passarg, config,
|
||||
CONFIG_MAX_LEVELS);
|
||||
CONFIG_MAX_LEVELS);
|
||||
|
||||
unicodefree(CURL_UNCONST(nextarg));
|
||||
config = global->last;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue