From 196b364aaee197fa24bb9ef3363b6447df74bb02 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 14:14:58 +0100 Subject: fix doc text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- communication.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'communication.h') diff --git a/communication.h b/communication.h index b40022b..e2407b7 100644 --- a/communication.h +++ b/communication.h @@ -38,7 +38,7 @@ * * @param ... The error description to send * @return 1: Client disconnected - * 0: Success (possibily delayed) + * 0: Success (possibly delayed) * -1: An error occurred */ #define send_error(...) ((send_error)(conn, message_id, __VA_ARGS__)) @@ -48,7 +48,7 @@ * * @param ... The value of `errno`, 0 to indicate success * @return 1: Client disconnected - * 0: Success (possibily delayed) + * 0: Success (possibly delayed) * -1: An error occurred */ #define send_errno(...) ((send_errno)(conn, message_id, __VA_ARGS__)) @@ -59,7 +59,7 @@ * @param conn The index of the connection * @param buf The data to send * @param n The size of `buf` - * @return Zero on success, -1 on error, 1 if disconncted + * @return Zero on success, -1 on error, 1 if disconnected * EINTR, EAGAIN, EWOULDBLOCK, and ECONNRESET count * as success (ECONNRESET cause 1 to be returned), * and are handled appropriately. @@ -73,7 +73,7 @@ int send_message(size_t conn, char *restrict buf, size_t n); * @param message_id The ID of the message to which this message is a response * @param desc The error description to send * @return 1: Client disconnected - * 0: Success (possibily delayed) + * 0: Success (possibly delayed) * -1: An error occurred */ GCC_ONLY(__attribute__((__nonnull__))) @@ -86,7 +86,7 @@ int (send_error)(size_t conn, const char *restrict message_id, const char *restr * @param message_id The ID of the message to which this message is a response * @param number The value of `errno`, 0 to indicate success * @return 1: Client disconnected - * 0: Success (possibily delayed) + * 0: Success (possibly delayed) * -1: An error occurred */ GCC_ONLY(__attribute__((__nonnull__))) @@ -96,7 +96,7 @@ int (send_errno)(size_t conn, const char *restrict message_id, int number); * Continue sending the queued messages * * @param conn The index of the connection - * @return Zero on success, -1 on error, 1 if disconncted + * @return Zero on success, -1 on error, 1 if disconnected * EINTR, EAGAIN, EWOULDBLOCK, and ECONNRESET count * as success (ECONNRESET cause 1 to be returned), * and are handled appropriately. -- cgit v1.2.3-70-g09d2