[Asterisk-code-review] spelling: beginning (asterisk[master])

Josh Soref asteriskteam at digium.com
Sun Nov 7 00:04:15 CDT 2021


Josh Soref has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/16766 )


Change subject: spelling: beginning
......................................................................

spelling: beginning

Change-Id: Ic12aca013bc2e317148f200678d47f7d0dc93bca
---
M apps/app_talkdetect.c
M channels/chan_sip.c
M contrib/utils/eagi_proxy.c
M formats/format_g719.c
M formats/format_g729.c
M formats/format_gsm.c
M formats/format_ilbc.c
M formats/format_ogg_vorbis.c
M formats/format_siren14.c
M formats/format_siren7.c
M formats/format_sln.c
M include/asterisk/mod_format.h
M main/enum.c
M main/xmldoc.c
M res/res_sorcery_memory_cache.c
15 files changed, 20 insertions(+), 20 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/66/16766/1

diff --git a/apps/app_talkdetect.c b/apps/app_talkdetect.c
index a733f3a..56d5037 100644
--- a/apps/app_talkdetect.c
+++ b/apps/app_talkdetect.c
@@ -218,7 +218,7 @@
 						}
 					} else {
 						if (!notsilent) {
-							/* Heard some audio, mark the begining of the token */
+							/* Heard some audio, mark the beginning of the token */
 							start = ast_tvnow();
 							ast_debug(1, "Start of voice token!\n");
 							notsilent = 1;
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 26b7a94..2acdd37 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -21029,7 +21029,7 @@
 	}
 
 	if (!ast_strlen_zero(peer_name)) {
-		/* strip SIP/ from the begining of the peer name */
+		/* strip SIP/ from the beginning of the peer name */
 		if (strlen(peer_name) >= 4 && !strncasecmp("SIP/", peer_name, 4)) {
 			peer_name += 4;
 		}
diff --git a/contrib/utils/eagi_proxy.c b/contrib/utils/eagi_proxy.c
index e87b932..f87c6b4 100644
--- a/contrib/utils/eagi_proxy.c
+++ b/contrib/utils/eagi_proxy.c
@@ -349,7 +349,7 @@
 			{
 				size-=end-be;/* reduce new data size by the higher end size */
 				memcpy(be,buf,end-be);/* copy to higher end */
-				be=winbuf;/* shift end to begining of buffer */
+				be=winbuf;/* shift end to beginning of buffer */
 				buf+=end-be;/* shift start of new data */
 			}
 			else/* if new data fits the higher end */
diff --git a/formats/format_g719.c b/formats/format_g719.c
index 673ec07..e7d2ee7 100644
--- a/formats/format_g719.c
+++ b/formats/format_g719.c
@@ -98,7 +98,7 @@
 	if (whence != SEEK_FORCECUR)
 		offset = (offset > max) ? max : offset;
 
-	/* always protect against seeking past begining. */
+	/* always protect against seeking past beginning. */
 	offset = (offset < min) ? min : offset;
 
 	return fseeko(fs->f, offset, SEEK_SET);
diff --git a/formats/format_g729.c b/formats/format_g729.c
index a6539a3..5995b84 100644
--- a/formats/format_g729.c
+++ b/formats/format_g729.c
@@ -97,7 +97,7 @@
 	if (whence != SEEK_FORCECUR) {
 		offset = (offset > max)?max:offset;
 	}
-	/* protect against seeking beyond begining. */
+	/* protect against seeking beyond beginning. */
 	offset = (offset < min)?min:offset;
 	if (fseeko(fs->f, offset, SEEK_SET) < 0)
 		return -1;
diff --git a/formats/format_gsm.c b/formats/format_gsm.c
index 48699b6..e833b2e 100644
--- a/formats/format_gsm.c
+++ b/formats/format_gsm.c
@@ -126,7 +126,7 @@
 		offset = max - distance;
 	}
 
-	/* Always protect against seeking past the begining. */
+	/* Always protect against seeking past the beginning. */
 	offset = (offset < min)?min:offset;
 	if (whence != SEEK_FORCECUR) {
 		offset = (offset > max)?max:offset;
diff --git a/formats/format_ilbc.c b/formats/format_ilbc.c
index 7de5abb..b3cc3f0 100644
--- a/formats/format_ilbc.c
+++ b/formats/format_ilbc.c
@@ -94,7 +94,7 @@
 	if (whence != SEEK_FORCECUR) {
 		offset = (offset > max)?max:offset;
 	}
-	/* protect against seeking beyond begining. */
+	/* protect against seeking beyond beginning. */
 	offset = (offset < min)?min:offset;
 	if (fseeko(fs->f, offset, SEEK_SET) < 0)
 		return -1;
diff --git a/formats/format_ogg_vorbis.c b/formats/format_ogg_vorbis.c
index ba86842..f6e35b9 100644
--- a/formats/format_ogg_vorbis.c
+++ b/formats/format_ogg_vorbis.c
@@ -385,7 +385,7 @@
 		return -1;
 	}
 
-	/* ov_pcm_seek support seeking only from begining (SEEK_SET), the rest must be emulated */
+	/* ov_pcm_seek support seeking only from beginning (SEEK_SET), the rest must be emulated */
 	switch (whence) {
 	case SEEK_SET:
 		seek_result = ov_pcm_seek(&desc->ov_f, sample_offset);
diff --git a/formats/format_siren14.c b/formats/format_siren14.c
index 60a3444..29dc01c 100644
--- a/formats/format_siren14.c
+++ b/formats/format_siren14.c
@@ -98,7 +98,7 @@
 	if (whence != SEEK_FORCECUR)
 		offset = (offset > max) ? max : offset;
 
-	/* always protect against seeking past begining. */
+	/* always protect against seeking past beginning. */
 	offset = (offset < min) ? min : offset;
 
 	return fseeko(fs->f, offset, SEEK_SET);
diff --git a/formats/format_siren7.c b/formats/format_siren7.c
index 27fec36..afd9497 100644
--- a/formats/format_siren7.c
+++ b/formats/format_siren7.c
@@ -98,7 +98,7 @@
 	if (whence != SEEK_FORCECUR)
 		offset = (offset > max) ? max : offset;
 
-	/* always protect against seeking past begining. */
+	/* always protect against seeking past beginning. */
 	offset = (offset < min) ? min : offset;
 
 	return fseeko(fs->f, offset, SEEK_SET);
diff --git a/formats/format_sln.c b/formats/format_sln.c
index 80d3484..4486c13 100644
--- a/formats/format_sln.c
+++ b/formats/format_sln.c
@@ -97,7 +97,7 @@
 	if (whence != SEEK_FORCECUR) {
 		offset = (offset > max)?max:offset;
 	}
-	/* always protect against seeking past begining. */
+	/* always protect against seeking past beginning. */
 	offset = (offset < min)?min:offset;
 	return fseeko(fs->f, offset, SEEK_SET);
 }
diff --git a/include/asterisk/mod_format.h b/include/asterisk/mod_format.h
index 6e772f0..4cfadf8 100644
--- a/include/asterisk/mod_format.h
+++ b/include/asterisk/mod_format.h
@@ -85,7 +85,7 @@
 	 * required size (in bytes) and the support routine will allocate them
 	 * for you, pointed by s->buf and s->private, respectively.
 	 * When allocating a buffer, remember to leave AST_FRIENDLY_OFFSET
-	 * spare bytes at the bginning.
+	 * spare bytes at the beginning.
 	 */
 	int buf_size;			/*!< size of frame buffer, if any, aligned to 8 bytes. */
 	int desc_size;			/*!< size of private descriptor, if any */
diff --git a/main/enum.c b/main/enum.c
index 48924b9..52b98a7 100644
--- a/main/enum.c
+++ b/main/enum.c
@@ -513,7 +513,7 @@
 		re_flags |= REG_ICASE;
 	}
 
-	pattern = regexp + 1;   /* pattern is the regex without the begining and ending delimiter */
+	pattern = regexp + 1;   /* pattern is the regex without the beginning and ending delimiter */
 	*delim2 = 0;    /* zero out the middle delimiter */
 	subst   = delim2 + 1; /* dst substring is everything after the second delimiter. */
 	regexp[regexp_len - 1] = 0; /* zero out the last delimiter */
diff --git a/main/xmldoc.c b/main/xmldoc.c
index 8b273f0..adb089f 100644
--- a/main/xmldoc.c
+++ b/main/xmldoc.c
@@ -630,7 +630,7 @@
  * \param rootname Name of the application, function, option, etc. to build the syntax.
  * \param childname The name of each parameter node.
  * \param printparenthesis Boolean if we must print parenthesis if not parameters are found in the rootnode.
- * \param printrootname Boolean if we must print the rootname before the syntax and parenthesis at the begining/end.
+ * \param printrootname Boolean if we must print the rootname before the syntax and parenthesis at the beginning/end.
  *
  * \retval NULL on error.
  * \retval An ast_malloc'ed string with the syntax generated.
@@ -1437,7 +1437,7 @@
 
 		/* parse <para> elements inside special tags. */
 		for (node = ast_xml_node_get_children(node); node; node = ast_xml_node_get_next(node)) {
-			/* first <para> just print it without tabs at the begining. */
+			/* first <para> just print it without tabs at the beginning. */
 			if ((xmldoc_parse_para(node, "", posttabs, buffer) == 2)
 				|| (xmldoc_parse_info(node, "", posttabs, buffer) == 2)) {
 				ret = 2;
@@ -1505,7 +1505,7 @@
  * \brief Parse a <variable> node inside a <variablelist> node.
  *
  * \param node The variable node to parse.
- * \param tabs A string to be appended at the begining of the output that will be stored
+ * \param tabs A string to be appended at the beginning of the output that will be stored
  *        in buffer.
  * \param buffer This must be an already created ast_str. It will be used
  *        to store the result (if already has something it will be appended to the current
@@ -1566,7 +1566,7 @@
  * \brief Parse a <variablelist> node and put all the output inside 'buffer'.
  *
  * \param node The variablelist node pointer.
- * \param tabs A string to be appended at the begining of the output that will be stored
+ * \param tabs A string to be appended at the beginning of the output that will be stored
  *        in buffer.
  * \param buffer This must be an already created ast_str. It will be used
  *        to store the result (if already has something it will be appended to the current
@@ -1791,7 +1791,7 @@
  * \brief Parse an <option> node.
  *
  * \param fixnode An ast_xml pointer to the <option> node.
- * \param tabs A string to be appended at the begining of each line being added to the
+ * \param tabs A string to be appended at the beginning of each line being added to the
  *             buffer string.
  * \param buffer The output buffer.
  *
@@ -1838,7 +1838,7 @@
  * \brief Parse an <optionlist> element from the xml documentation.
  *
  * \param fixnode Pointer to the optionlist xml node.
- * \param tabs A string to be appended at the begining of each line being added to the
+ * \param tabs A string to be appended at the beginning of each line being added to the
  *             buffer string.
  * \param buffer Output buffer to put what is inside the optionlist tag.
  */
diff --git a/res/res_sorcery_memory_cache.c b/res/res_sorcery_memory_cache.c
index dad3146..03444c2 100644
--- a/res/res_sorcery_memory_cache.c
+++ b/res/res_sorcery_memory_cache.c
@@ -3186,7 +3186,7 @@
 
 		real_backend_data = &iterations[i];
 
-		ast_test_status_update(test, "Begininning iteration %d\n", i);
+		ast_test_status_update(test, "Beginning iteration %d\n", i);
 
 		cache_fresh = ast_sorcery_retrieve_by_id(sorcery, "test", "test");
 		if (!cache_fresh) {

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/16766
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Ic12aca013bc2e317148f200678d47f7d0dc93bca
Gerrit-Change-Number: 16766
Gerrit-PatchSet: 1
Gerrit-Owner: Josh Soref <jsoref at gmail.com>
Gerrit-CC: Friendly Automation
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20211107/f95657f9/attachment-0001.html>


More information about the asterisk-code-review mailing list