From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 25 Jan 2024 21:52:09 +0000 (+0100) Subject: Fix typos in src X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a964e34effa78959bb0f157b32d792f340b42c76;p=thirdparty%2Ffreeradius-server.git Fix typos in src Misspellings found by codespell. --- diff --git a/src/lib/bio/haproxy.c b/src/lib/bio/haproxy.c index 4e5a1bf3a0f..294f5834016 100644 --- a/src/lib/bio/haproxy.c +++ b/src/lib/bio/haproxy.c @@ -159,7 +159,7 @@ static ssize_t fr_bio_haproxy_read_next(fr_bio_t *bio, UNUSED void *packet_ctx, used = fr_bio_buf_used(&my->buffer); /* - * Somehow (magically) we can satisy the read from our buffer. Do so. Note that we do NOT run + * Somehow (magically) we can satisfy the read from our buffer. Do so. Note that we do NOT run * the activation callback, as there is still data in our buffer */ if (size < used) { diff --git a/src/lib/bio/mem.c b/src/lib/bio/mem.c index 3310a3129a2..b0d44e80c0d 100644 --- a/src/lib/bio/mem.c +++ b/src/lib/bio/mem.c @@ -202,7 +202,7 @@ static ssize_t fr_bio_mem_read_packet(fr_bio_t *bio, void *packet_ctx, void *buf /* * We've tried to make room and failed. Which means that the buffer is full, AND there - * still isn't a compelte packet in the buffer. This is therefore a fatal error. The + * still isn't a complete packet in the buffer. This is therefore a fatal error. The * application has not supplied us with enough read_buffer space to store a complete * packet. */ diff --git a/src/lib/bio/network.c b/src/lib/bio/network.c index d8acd1a18fe..48fda491369 100644 --- a/src/lib/bio/network.c +++ b/src/lib/bio/network.c @@ -97,7 +97,7 @@ fr_bio_t *fr_bio_network_alloc(TALLOC_CTX *ctx, fr_ipaddr_t const *allow, fr_ipa fr_bio_fd_info_t const *info; /* - * We are only useable for FD bios. We need to get "offset" into the packet_ctx, and we don't + * We are only usable for FD bios. We need to get "offset" into the packet_ctx, and we don't * want to have an API which allows for two different "offset" values to be passed to two * different bios. */ diff --git a/src/lib/bio/network.h b/src/lib/bio/network.h index 8f869b950bf..7270ee76a4e 100644 --- a/src/lib/bio/network.h +++ b/src/lib/bio/network.h @@ -37,7 +37,7 @@ fr_trie_t *fr_bio_network_trie_alloc(TALLOC_CTX *ctx, int af, fr_ipaddr_t const * NULL means "nothing matches", which should also be interpreted as "deny". * * The difference between "NULL" and "deny" is that NULL is an IP address which was never inserted into - * the trie. Whereas "deny" menas that there is a parent "allow" range, and we are carving out a "deny" + * the trie. Whereas "deny" means that there is a parent "allow" range, and we are carving out a "deny" * in the middle of that range. */ #define FR_BIO_NETWORK_ALLOW ((void *) (-1)) diff --git a/src/lib/eap/base.c b/src/lib/eap/base.c index da7f3e52f79..e4e7c334850 100644 --- a/src/lib/eap/base.c +++ b/src/lib/eap/base.c @@ -167,7 +167,7 @@ static bool eap_is_valid(TALLOC_CTX *ctx, eap_packet_raw_t **eap_packet_p) */ packet_len = talloc_array_length((uint8_t *) eap_packet); if (packet_len <= EAP_HEADER_LEN) { - fr_strerror_printf("Invalid EAP data lenth %zd <= 4", packet_len); + fr_strerror_printf("Invalid EAP data length %zd <= 4", packet_len); return false; } diff --git a/src/lib/eap/compose.c b/src/lib/eap/compose.c index dd86b25f1c8..f64e8580288 100644 --- a/src/lib/eap/compose.c +++ b/src/lib/eap/compose.c @@ -170,7 +170,7 @@ rlm_rcode_t eap_compose(eap_session_t *eap_session) */ if (!eap_round->set_request_id) { /* - * Id serves to suppport request/response + * Id serves to support request/response * retransmission in the EAP layer and as such * must be different for 'adjacent' packets * except in case of success/failure-replies. diff --git a/src/lib/eap/session.c b/src/lib/eap/session.c index 7e51e3f69ed..c30e9ac80af 100644 --- a/src/lib/eap/session.c +++ b/src/lib/eap/session.c @@ -134,7 +134,7 @@ static eap_session_t *eap_session_alloc(request_t *request) return eap_session; } -/** 'destroy' an EAP session and dissasociate it from the current request +/** 'destroy' an EAP session and disassociate it from the current request * * @note This could be done in the eap_session_t destructor (and was done previously) * but this made the code too hard to follow, and too fragile. @@ -259,7 +259,7 @@ static char *eap_identity(request_t *request, eap_session_t *eap_session, eap_pa * In some EAP methods, the identity may be encrypted, and padded * out to the block size of the encryption method. These identities * may contain nuls, and may be much larger than humanly readable - * identiies. + * identities. * * The identity value *MUST NOT* be artificially limited or truncated * here. diff --git a/src/lib/eap/tls.c b/src/lib/eap/tls.c index 4b13e2eac0a..1d71573a9a6 100644 --- a/src/lib/eap/tls.c +++ b/src/lib/eap/tls.c @@ -536,7 +536,7 @@ static eap_tls_status_t eap_tls_session_status(request_t *request, eap_session_t /** Check that this EAP-TLS packet is correct and the progression of EAP-TLS packets is sane * - * @note In the received packet, No data will be present incase of ACK or NAK + * @note In the received packet, No data will be present in case of ACK or NAK * in this case the packet->data pointer will be NULL. * * @param[in] request the current subrequest. @@ -936,7 +936,7 @@ static inline CC_HINT(always_inline) unlang_action_t eap_tls_handshake_push(requ * Here we implement a basic state machine. The state machine is implicit and * is driven by the state of the TLS session and the flags sent. * INCOMING DATA: - * 1. EAP-TLS should get the compelete TLS data from the peer. + * 1. EAP-TLS should get the complete TLS data from the peer. * 2. Store that data in a data structure with any other required info * 3. Hand this data structure to the TLS module. * 4. TLS module will perform its operations on the data and hands back to EAP-TLS diff --git a/src/lib/server/tmpl_dcursor.c b/src/lib/server/tmpl_dcursor.c index 89fa6a6ee22..5ddd1f4992d 100644 --- a/src/lib/server/tmpl_dcursor.c +++ b/src/lib/server/tmpl_dcursor.c @@ -401,7 +401,7 @@ fr_pair_t *_tmpl_dcursor_init(int *err, TALLOC_CTX *ctx, tmpl_dcursor_ctx_t *cc, if (err) *err = 0; /* - * Navigate to the correct request context (parent, outer, curent, etc...) + * Navigate to the correct request context (parent, outer, current, etc...) */ if (tmpl_request_ptr(&request, tmpl_request(vpt)) < 0) { if (err) *err = -3; diff --git a/src/lib/server/tmpl_escape.h b/src/lib/server/tmpl_escape.h index ebc229720f7..42faac73a50 100644 --- a/src/lib/server/tmpl_escape.h +++ b/src/lib/server/tmpl_escape.h @@ -37,7 +37,7 @@ typedef enum { ///< from uctx.ptr. } tmpl_escape_uctx_type_t; -/** Funtion to allocate a user context for escaping +/** Function to allocate a user context for escaping * * @param[in] request Request that the tmpl is being evaluated for. * @param[in] uctx The user context that was passed via the tmpl_escape_t. diff --git a/src/lib/server/tmpl_tokenize.c b/src/lib/server/tmpl_tokenize.c index c6092043e0f..9ebf6c19496 100644 --- a/src/lib/server/tmpl_tokenize.c +++ b/src/lib/server/tmpl_tokenize.c @@ -812,7 +812,7 @@ void tmpl_set_dict_def(tmpl_t *vpt, fr_dict_t const *dict) /** Set escape parameters for the tmpl output * - * @parma[in] vpt to alter. + * @param[in] vpt to alter. * @param[in] escape to set. */ void tmpl_set_escape(tmpl_t *vpt, tmpl_escape_t const *escape) diff --git a/src/lib/util/acutest.h b/src/lib/util/acutest.h index 69802f0ca55..4393470f1fc 100644 --- a/src/lib/util/acutest.h +++ b/src/lib/util/acutest.h @@ -261,7 +261,7 @@ */ #define TEST_LOG_MAXSIZE ((TEST_DUMP_MAXSIZE * 3) + TEST_MSG_MAXSIZE + 3) -/* Common test initialiation/clean-up +/* Common test initialisation/clean-up * * In some test suites, it may be needed to perform some sort of the same * initialization and/or clean-up in all the tests. @@ -1319,7 +1319,7 @@ acutest_run_(const struct acutest_test_* test, int index, int master_index) char msg[TEST_LOG_MAXSIZE]; size_t count; - /* Create pipe for receiveing log entries */ + /* Create pipe for receiving log entries */ if (!CreatePipe(&hRead, &hWrite, &lpPipeAttribute, 0)) { fprintf(stderr, "Error creating pipe\n"); acutest_exit_(2); diff --git a/src/lib/util/value.c b/src/lib/util/value.c index 045c976c042..e2c0ac3237a 100644 --- a/src/lib/util/value.c +++ b/src/lib/util/value.c @@ -5862,7 +5862,7 @@ int fr_value_box_list_concat_in_place(TALLOC_CTX *ctx, /** Escape a single value box in place * - * @note Applies recurssively to the children of group boxes. + * @note Applies recursively to the children of group boxes. * * @param[in] vb to escape. * @param[in] escape function to apply to the value box. @@ -5886,7 +5886,7 @@ int fr_value_box_escape_in_place(fr_value_box_t *vb, fr_value_box_escape_t escap /** Escape a list of value boxes in place * - * @note Applies recurssively to the children of group boxes. + * @note Applies recursively to the children of group boxes. * * @note on error, the list may be left in an inconsistent/partially escaped state. * diff --git a/src/lib/util/value.h b/src/lib/util/value.h index 701ae7ebc7a..f6764067b4c 100644 --- a/src/lib/util/value.h +++ b/src/lib/util/value.h @@ -618,7 +618,7 @@ fr_value_box_t *_fr_value_box_alloc(NDEBUG_LOCATION_ARGS TALLOC_CTX *ctx, fr_typ /** @name Escape functions * - * Apply a tranformation to a value box or list of value boxes. + * Apply a transformation to a value box or list of value boxes. * * @{ */ diff --git a/src/modules/rlm_rest/rlm_rest.c b/src/modules/rlm_rest/rlm_rest.c index 7f1f87f73f7..5f40300bfbc 100644 --- a/src/modules/rlm_rest/rlm_rest.c +++ b/src/modules/rlm_rest/rlm_rest.c @@ -1102,7 +1102,7 @@ static int parse_sub_section(rlm_rest_t *inst, CONF_SECTION *parent, conf_parser /* * Custom hackery to figure out if data was set we can't do it any other way because we can't - * parse the tmpl_t execept within a call_env. + * parse the tmpl_t except within a call_env. * * We have custom body data so we set REST_HTTP_BODY_CUSTOM, but also need to try and * figure out what content-type to use. So if they've used the canonical form we