docs: Fix various typos in channels/

Found via `codespell -q 3 -S "./CREDITS,*.po" -L abd,asent,atleast,cachable,childrens,contentn,crypted,dne,durationm,enew,exten,inout,leapyear,mye,nd,oclock,offsetp,ot,parm,parms,preceeding,pris,ptd,requestor,re-use,re-used,re-uses,ser,siz,slanguage,slin,thirdparty,varn,varns,ues`

(cherry picked from commit 44a27dc13f)
This commit is contained in:
Luz Paz
2025-02-04 06:44:31 -05:00
committed by Asterisk Development Team
parent a82e7c2f89
commit 595a58685b
16 changed files with 86 additions and 86 deletions

View File

@@ -213,7 +213,7 @@ extern "C" {
* \param object A pointer the object to operate on.
* \param destructor The destructor to call if the object is no longer referenced. It will be passed the pointer as an argument.
*
* This macro unreferences an object and calls the specfied destructor if the
* This macro unreferences an object and calls the specified destructor if the
* object is no longer referenced. The destructor should free the object if it
* was dynamically allocated.
*/
@@ -358,7 +358,7 @@ extern "C" {
* \param eval A statement to evaluate in the iteration loop.
*
* This is macro is a little complicated, but it may help to think of it as a
* loop. Basically it iterates through the specfied containter as long as the
* loop. Basically it iterates through the specified container as long as the
* condition is met. Two variables, iterator and next, are provided for use in
* your \p eval statement. See the sample code for an example.
*
@@ -393,7 +393,7 @@ extern "C" {
* \param container A pointer to the container to search.
* \param namestr The name to search for.
*
* Use this function to find an object with the specfied name in a container.
* Use this function to find an object with the specified name in a container.
*
* \note When the returned object is no longer in use, #ASTOBJ_UNREF() should
* be used to free the additional reference created by this macro.
@@ -468,7 +468,7 @@ extern "C" {
* \param container A pointer to the container to operate on.
* \param obj A pointer to the object to remove.
*
* This macro iterates through a container and removes the specfied object if
* This macro iterates through a container and removes the specified object if
* it exists in the container.
*
* \note This macro does not destroy any objects, it simply unlinks
@@ -503,7 +503,7 @@ extern "C" {
* \param namestr The name of the object to remove.
*
* This macro iterates through a container and removes the first object with
* the specfied name from the container.
* the specified name from the container.
*
* \note This macro does not destroy any objects, it simply unlinks
* them. No destructors are called.
@@ -647,8 +647,8 @@ extern "C" {
* \param container A pointer to the container to prune.
* \param destructor A destructor function to call on each marked object.
*
* This macro iterates through the specfied container and prunes any marked
* objects executing the specfied destructor if necessary.
* This macro iterates through the specified container and prunes any marked
* objects executing the specified destructor if necessary.
*/
#define ASTOBJ_CONTAINER_PRUNE_MARKED(container,destructor) \
do { \
@@ -756,7 +756,7 @@ extern "C" {
/*! \brief Destroy a container.
*
* \param container A pointer to the container to destory.
* \param container A pointer to the container to destroy.
*
* This macro frees up resources used by a container. It does not operate on
* the objects in the container. To unlink the objects from the container use
@@ -797,7 +797,7 @@ extern "C" {
* \param obj A pointer to the object to dump.
*
* This macro dumps a text representation of the name, objectflags, and
* refcount fields of an object to the specfied string buffer.
* refcount fields of an object to the specified string buffer.
*/
#define ASTOBJ_DUMP(s,slen,obj) \
snprintf((s),(slen),"name: %s\nobjflags: %u\nrefcount: %u\n\n", (obj)->name, (obj)->objflags, (obj)->refcount);

View File

@@ -86,7 +86,7 @@ int iax_firmware_append(struct iax_ie_data *ie_data,
* \c callback function each time it is invoked.
*
* This function visits each of the elements in the IAX firmware list, calling
* the specfied \c callback for each element. Iteration continues until the end
* the specified \c callback for each element. Iteration continues until the end
* of the list is reached, or the \c callback returns non-zero.
*
* The \c callback function receives a pointer to the firmware header and the

View File

@@ -128,7 +128,7 @@ struct iax_frame {
int iseqno;
/*! Retransmission ID */
int retrans;
/*! is this packet encrypted or not. if set this varible holds encryption methods*/
/*! is this packet encrypted or not. if set this variable holds encryption methods*/
int encmethods;
/*! store encrypt key */
ast_aes_encrypt_key ecx;

View File

@@ -18,7 +18,7 @@
#include "parser.h"
#define PROV_IE_USEDHCP 1 /* Presense only */
#define PROV_IE_USEDHCP 1 /* Presence only */
#define PROV_IE_IPADDR 2 /* 32-bit */
#define PROV_IE_SUBNET 3 /* 32-bit */
#define PROV_IE_GATEWAY 4 /* 32-bit */