From 02dca1eb868fa8b4ef82bfe530ad47ddd8c6d7b0 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 12 May 2026 15:54:06 +0200 Subject: [PATCH] src: fix comment typos Found by GitHub Code Quality Closes #21570 --- lib/curl_ntlm_core.c | 2 +- lib/multi.c | 4 ++-- lib/tftp.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c index 9f8db0328f..e774d282f7 100644 --- a/lib/curl_ntlm_core.c +++ b/lib/curl_ntlm_core.c @@ -633,7 +633,7 @@ CURLcode Curl_ntlm_core_mk_ntlmv2_resp(const unsigned char *ntlmv2hash, * * ntlmv2hash [in] - The NTLMv2 hash (16 bytes) * challenge_client [in] - The client nonce (8 bytes) - * challenge_client [in] - The server challenge (8 bytes) + * challenge_server [in] - The server challenge (8 bytes) * lmresp [out] - The LMv2 response (24 bytes) * * Returns CURLE_OK on success. diff --git a/lib/multi.c b/lib/multi.c index 5e84133f13..53b23641eb 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -404,7 +404,7 @@ static CURLMcode multi_xfers_add(struct Curl_multi *multi, if(capacity < max_capacity) { /* We want `multi->xfers` to have "sufficient" free rows, so that we do - * have to reuse the `mid` from a removed easy right away. + * not have to reuse the `mid` from a removed easy right away. * Since uint_tbl and uint_bset are memory efficient, * regard less than 25% free as insufficient. * (for low capacities, e.g. multi_easy, 4 or less). */ @@ -420,7 +420,7 @@ static CURLMcode multi_xfers_add(struct Curl_multi *multi, new_size = max_capacity; /* can not be larger than this */ } else { - /* make it a 64 multiple, since our bitsets frow by that and + /* make it a 64 multiple, since our bitsets grow by that and * small (easy_multi) grows to at least 64 on first resize. */ new_size = (((used + min_unused) + 63) / 64) * 64; } diff --git a/lib/tftp.c b/lib/tftp.c index a088cd9046..7aaf882d9b 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -675,7 +675,7 @@ static CURLcode tftp_send_first(struct tftp_conn *state, } if(data->state.upload) { - /* If we are uploading, send an WRQ */ + /* If we are uploading, send a WRQ */ setpacketevent(&state->spacket, TFTP_EVENT_WRQ); if(data->state.infilesize != -1) Curl_pgrsSetUploadSize(data, data->state.infilesize); @@ -740,7 +740,7 @@ static CURLcode tftp_send_first(struct tftp_conn *state, } } - /* the typecase for the 3rd argument is mostly for systems that do + /* the typecast for the 3rd argument is mostly for systems that do not have a size_t argument, like older unixes that want an 'int' */ #ifdef __AMIGA__ #define CURL_SENDTO_ARG5(x) CURL_UNCONST(x)