From ae7605e0a1002a90c5a17d3d41ebaf82f4efebd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Avic=20Simmons?= Date: Mon, 29 Jun 2026 11:06:48 -0400 Subject: [PATCH] docs: fix 8 typos in code comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - src/socket.c: occured → occurred - src/shell.c: enviroment → environment, Allocated → Allocates - src/crypto.h: Cyptographic → Cryptographic - src/methods/common.h: hightest → highest, to far → so far, to packets → to accept packets, bit seen → been seen - src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.h: compatiblity → compatibility --- src/crypto.h | 2 +- src/methods/common.h | 6 +++--- src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.h | 2 +- src/shell.c | 4 ++-- src/socket.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/crypto.h b/src/crypto.h index 2f91f8d..b2e62b9 100644 --- a/src/crypto.h +++ b/src/crypto.h @@ -26,7 +26,7 @@ /** \file - Cyptographic algorithm API and utilities + Cryptographic algorithm API and utilities */ diff --git a/src/methods/common.h b/src/methods/common.h index 4465cf3..6c0d006 100644 --- a/src/methods/common.h +++ b/src/methods/common.h @@ -50,10 +50,10 @@ typedef struct fastd_method_common { fastd_timeout_t refresh_after; /**< When to try refreshing the session */ uint8_t send_nonce[COMMON_NONCEBYTES]; /**< The next nonce to use */ - uint8_t receive_nonce[COMMON_NONCEBYTES]; /**< The hightest nonce received to far for this session */ + uint8_t receive_nonce[COMMON_NONCEBYTES]; /**< The highest nonce received so far for this session */ - fastd_timeout_t reorder_timeout; /**< How long to packets with a lower sequence number (nonce) than the newest received */ - uint64_t receive_reorder_seen; /**< Bitmap specifying which of the 64 sequence numbers (nonces) before \a receive_nonce have bit seen */ + fastd_timeout_t reorder_timeout; /**< How long to accept packets with a lower sequence number (nonce) than the newest received */ + uint64_t receive_reorder_seen; /**< Bitmap specifying which of the 64 sequence numbers (nonces) before \a receive_nonce have been seen */ } fastd_method_common_t; diff --git a/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.h b/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.h index aabc54a..37fb0e0 100644 --- a/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.h +++ b/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.h @@ -99,7 +99,7 @@ struct fastd_protocol_peer_state { aligned_int256_t peer_handshake_key; /**< The peer's ephemeral public key used in the last handshake */ aligned_int256_t sigma; /**< The value of sigma used in the last handshake */ fastd_sha256_t shared_handshake_key; /**< The shared handshake key used in the last handshake */ - fastd_sha256_t shared_handshake_key_compat; /**< The shared handshake key used in the last handshake (pre-v11 compatiblity protocol) */ + fastd_sha256_t shared_handshake_key_compat; /**< The shared handshake key used in the last handshake (pre-v11 compatibility protocol) */ }; diff --git a/src/shell.c b/src/shell.c index 8475825..efe1b21 100644 --- a/src/shell.c +++ b/src/shell.c @@ -41,7 +41,7 @@ /** An environment variable */ typedef struct shell_env_entry { - const char *key; /**< The name of the enviroment variable */ + const char *key; /**< The name of the environment variable */ char *value; /**< The value of the environment variable */ } shell_env_entry_t; @@ -52,7 +52,7 @@ struct fastd_shell_env { }; -/** Allocated a new shell environment */ +/** Allocates a new shell environment */ fastd_shell_env_t * fastd_shell_env_alloc(void) { return fastd_new0(fastd_shell_env_t); } diff --git a/src/socket.c b/src/socket.c index 8f467f3..eae8c12 100644 --- a/src/socket.c +++ b/src/socket.c @@ -264,7 +264,7 @@ void fastd_socket_close(fastd_socket_t *sock) { } } -/** Handles an error that occured on a socket */ +/** Handles an error that occurred on a socket */ void fastd_socket_error(fastd_socket_t *sock) { fastd_peer_address_t bound_addr = *sock->bound_addr; if (!sock->addr->addr.sa.sa_family)