tidy-up: miscellaneous

- avoid "will" in builds scripts, scripts folder, curl_easy_ssls_export.md,
  and few other files.
- badwords: add "initialise", "nul terminated", "thread safety" and
  variations.
- prefer "null-terminat", where missing (two places).
- fix "null-terminat*" missing dash.
- hostip: merge two `#if` blocks.
- tool_doswin: fix comment
  Spotted by GitHub Code Quality
  Follow-up to 9a2663322c #17572
- fix stray spaces and newlines.

Closes #21638
This commit is contained in:
Viktor Szakats 2026-05-14 20:37:42 +02:00
parent 47f411c6d8
commit 614b94eecc
No known key found for this signature in database
64 changed files with 203 additions and 213 deletions

View file

@ -219,7 +219,7 @@ void config_free(struct OperationConfig *config)
* round to verify them.
*
* The main point is to make sure that what is returned is different than what
* the regular memory functions return so that mixup will trigger problems.
* the regular memory functions return so that mixup does trigger problems.
*
* This test setup currently only works when building with a *shared* libcurl
* and not static, as in the latter case the tool and the library share some of

View file

@ -804,7 +804,7 @@ curl_socket_t win32_stdin_read_thread(void)
break;
}
/* Bind to any available loopback port */
/* Retrieve the assigned loopback port/address */
if(getsockname(tdata->socket_l, (struct sockaddr *)&selfaddr, &socksize)) {
errorf("getsockname error: %d", SOCKERRNO);
break;

View file

@ -652,8 +652,7 @@ static void param_encoder(char **ptr, char **endct, char **pencoder,
* @param str Pointer to the current position in the input string.
* Updated to point at the delimiter or terminator that
* ended the parsed part.
* @param pdata Pointer to a char * that will receive the primary data
* word.
* @param pdata Pointer to a char * that receives the primary data word.
* @param ptype [out] Optional. Receives the extracted 'type=' value.
* @param pfilename [out] Optional. Receives the extracted 'filename=' value.
* @param pencoder [out] Optional. Receives the extracted 'encoder=' value.

View file

@ -355,7 +355,7 @@ static ParameterError addvariable(const char *name,
p = curlx_calloc(1, sizeof(struct tool_var) + nlen);
if(p) {
memcpy(p->name, name, nlen);
/* the null termination byte is already present from above */
/* the null-termination byte is already present from above */
p->content = contalloc ? content : curlx_memdup0(content, clen);
if(p->content) {