tidy-up: miscellaneous

- fix typos.
- badword: add two new words.
- cpp: drop parentheses from standalone `#if` expressions.
- libssh: vertical-align comment block with others.
- clang-format.

Closes #21880
This commit is contained in:
Viktor Szakats 2026-06-02 00:44:17 +02:00
parent 982e19f231
commit d3e9a815c4
No known key found for this signature in database
31 changed files with 246 additions and 252 deletions

View file

@ -195,14 +195,14 @@ static const char *disabled[] = {
#endif
,
"large-time: "
#if (SIZEOF_TIME_T < 5)
#if SIZEOF_TIME_T < 5
"OFF"
#else
"ON"
#endif
,
"large-size: "
#if (SIZEOF_SIZE_T < 5)
#if SIZEOF_SIZE_T < 5
"OFF"
#else
"ON"

View file

@ -197,14 +197,13 @@ static ParameterError extract_param(char *line,
* Updates *configp if a new operation config is allocated.
* Returns PARAM_OK if processing should continue, or an error code.
*/
static ParameterError
process_config_result(ParameterError res,
struct OperationConfig **configp,
const char *param,
bool usedarg,
const char *filename,
int lineno,
const char *option)
static ParameterError process_config_result(ParameterError res,
struct OperationConfig **configp,
const char *param,
bool usedarg,
const char *filename,
int lineno,
const char *option)
{
if(!res && param && *param && !usedarg)
/* we passed in a parameter that was not used! */