From 6f3555917075d56bee7c8642c6ad1597c2b91379 Mon Sep 17 00:00:00 2001 From: Jonathan <74002342+jd-imi@users.noreply.github.com> Date: Wed, 11 Sep 2024 15:20:32 +0200 Subject: [PATCH] Fix some typos (#762) --- src/bacnet/bacstr.c | 6 +++--- src/bacnet/basic/bbmd6/h_bbmd6.c | 6 +++--- src/bacnet/basic/object/device.h | 2 +- src/bacnet/basic/sys/keylist.c | 2 +- src/bacnet/iam.c | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/bacnet/bacstr.c b/src/bacnet/bacstr.c index f005deff..c4bb4848 100644 --- a/src/bacnet/bacstr.c +++ b/src/bacnet/bacstr.c @@ -345,7 +345,7 @@ bool bitstring_init_ascii(BACNET_BIT_STRING *bit_string, const char *ascii) #define CHARACTER_STRING_CAPACITY (MAX_CHARACTER_STRING_BYTES - 1) /** - * Initialize a BACnet characater string. + * Initialize a BACnet character string. * Returns false if the string exceeds capacity. * Initialize by using value=NULL * @@ -419,7 +419,7 @@ size_t characterstring_strnlen(const char *str, size_t maxlen) } /** - * Initialize a BACnet characater string. + * Initialize a BACnet character string. * Returns false if the string exceeds capacity. * Initialize by using value=NULL * @@ -438,7 +438,7 @@ bool characterstring_init_ansi_safe( } /** - * Initialize a BACnet characater string. + * Initialize a BACnet character string. * Returns false if the string exceeds capacity. * Initialize by using value=NULL * diff --git a/src/bacnet/basic/bbmd6/h_bbmd6.c b/src/bacnet/basic/bbmd6/h_bbmd6.c index 221da8b3..c1a9d696 100644 --- a/src/bacnet/basic/bbmd6/h_bbmd6.c +++ b/src/bacnet/basic/bbmd6/h_bbmd6.c @@ -349,7 +349,7 @@ int bvlc6_send_pdu( #if defined(BACDL_BIP6) && BBMD6_ENABLED /** - * The send function for Broacast Distribution Table + * The send function for Broadcast Distribution Table * * @param addr - Points to a #BACNET_IP6_ADDRESS structure containing the * source IPv6 address. @@ -376,7 +376,7 @@ static void bbmd6_send_pdu_bdt(uint8_t *mtu, unsigned int mtu_len) } /** - * The send function for Broacast Distribution Table + * The send function for Broadcast Distribution Table * * @param addr - Points to a #BACNET_IP6_ADDRESS structure containing the * source IPv6 address. @@ -403,7 +403,7 @@ static void bbmd6_send_pdu_fdt(uint8_t *mtu, unsigned int mtu_len) } /** - * The Forward NPDU send function for Broacast Distribution Table + * The Forward NPDU send function for Broadcast Distribution Table * * @param addr - Points to a #BACNET_IP6_ADDRESS structure containing the * source IPv6 address. diff --git a/src/bacnet/basic/object/device.h b/src/bacnet/basic/object/device.h index 9d1c9109..a502f1f7 100644 --- a/src/bacnet/basic/object/device.h +++ b/src/bacnet/basic/object/device.h @@ -96,7 +96,7 @@ typedef bool (*object_cov_function)(uint32_t object_instance); */ typedef void (*object_cov_clear_function)(uint32_t object_instance); -/** Intrinsic Reporting funcionality. +/** Intrinsic Reporting functionality. * @ingroup ObjHelpers * @param [in] Object instance. */ diff --git a/src/bacnet/basic/sys/keylist.c b/src/bacnet/basic/sys/keylist.c index 1e6eae3d..96aba8f6 100644 --- a/src/bacnet/basic/sys/keylist.c +++ b/src/bacnet/basic/sys/keylist.c @@ -159,7 +159,7 @@ static bool FindIndex(OS_Keylist list, KEY key, int *pIndex) * @param list Pointer to the list * @param key Key to be inserted * @param data Pointer to the data hold by the key. - * This pointer needs to be poiting to static memory + * This pointer needs to be pointing to static memory * as it will be stored in the list and later used * by retrieving the key again. * @return Index of the key, or -1 if not found. diff --git a/src/bacnet/iam.c b/src/bacnet/iam.c index 428e6f67..d8e1961e 100644 --- a/src/bacnet/iam.c +++ b/src/bacnet/iam.c @@ -58,7 +58,7 @@ int iam_encode_apdu( * @brief Decode the I-Am service. * * @param apdu Receive buffer - * @param pDevice_id Pointer to the variable that shal ltake the device Id. + * @param pDevice_id Pointer to the variable that shall take the device Id. * @param pMax_apdu Pointer to a variable that shall take the decoded length. * @param pSegmentation Pointer to a variable taking if segmentation is used. * @param pVendor_id Pointer to a variable taking the vendor id.