[Asterisk-code-review] Fix Common Typo's. (asterisk[15])

Corey Farrell asteriskteam at digium.com
Wed Dec 20 11:46:35 CST 2017


Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/7686


Change subject: Fix Common Typo's.
......................................................................

Fix Common Typo's.

Fix instances of:
* Retreive
* Recieve
* other then
* different then
* Repeated words ("the the", "an an", "and and", etc).
* othterwise, teh

ASTERISK-24198 #close

Change-Id: I3809a9c113b92fd9d0d9f9bac98e9c66dc8b2d31
---
M addons/ooh323c/src/ooLogChan.c
M addons/ooh323c/src/ooasn1.h
M addons/ooh323c/src/ooh323.h
M apps/app_adsiprog.c
M apps/app_minivm.c
M apps/app_saycounted.c
M apps/app_skel.c
M apps/app_voicemail.c
M channels/chan_dahdi.c
M channels/chan_mgcp.c
M channels/chan_sip.c
M channels/chan_unistim.c
M channels/sip/include/reqresp_parser.h
M include/asterisk.h
M include/asterisk/ast_version.h
M include/asterisk/astobj2.h
M include/asterisk/bridge_after.h
M include/asterisk/bridge_features.h
M include/asterisk/callerid.h
M include/asterisk/http.h
M include/asterisk/parking.h
M include/asterisk/pbx.h
M include/asterisk/strings.h
M main/astmm.c
M main/astobj2.c
M main/db.c
M main/editline/map.c
M main/editline/refresh.c
M main/jitterbuf.c
M main/named_acl.c
M main/netsock2.c
M main/security_events.c
M main/stdtime/localtime.c
M main/threadpool.c
M menuselect/menuselect_gtk.c
M res/ael/pval.c
M res/parking/res_parking.h
M res/res_config_sqlite3.c
M res/res_fax.c
M res/res_format_attr_opus.c
M res/res_pjsip/pjsip_configuration.c
M res/res_pjsip_pubsub.c
M res/res_pjsip_session.c
M res/stasis/control.c
M tests/test_aoc.c
M tests/test_taskprocessor.c
46 files changed, 62 insertions(+), 62 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/86/7686/1

diff --git a/addons/ooh323c/src/ooLogChan.c b/addons/ooh323c/src/ooLogChan.c
index bafb315..004861c 100644
--- a/addons/ooh323c/src/ooLogChan.c
+++ b/addons/ooh323c/src/ooLogChan.c
@@ -290,7 +290,7 @@
       prev = temp;
       temp = temp->next;
       ooClearLogicalChannel(call, prev->channelNo);/* TODO: efficiency - This causes re-search 
-                                                      of of logical channel in the list. Can be
+                                                      of logical channel in the list. Can be
                                                       easily improved.*/
    }
    call->logicalChans = NULL;
diff --git a/addons/ooh323c/src/ooasn1.h b/addons/ooh323c/src/ooasn1.h
index e7b585e..e75ff6d 100644
--- a/addons/ooh323c/src/ooasn1.h
+++ b/addons/ooh323c/src/ooasn1.h
@@ -719,8 +719,8 @@
  * associated with an error message. These parameters are maintained on an
  * internal linked list maintained within the error information structure. The
  * list memory must be freed when error processing is complete. This function
- * is called from within errPrint after teh error has been printed out. It is
- * also called in teh freeContext function.
+ * is called from within errPrint after the error has been printed out. It is
+ * also called in the freeContext function.
  *
  * @param pErrInfo     A pointer to a structure containing information on the
  *                     error to be printed. Typically, the error info
@@ -1737,7 +1737,7 @@
 
 /**
  * This function will endcode a small, non-negative whole number as specified
- * in Section 10.6 of teh X.691 standard. This is a number that is expected to
+ * in Section 10.6 of the X.691 standard. This is a number that is expected to
  * be small, but whose size is potentially unlimited due to the presence of an
  * extension marker.
  *
diff --git a/addons/ooh323c/src/ooh323.h b/addons/ooh323c/src/ooh323.h
index 6b7edc2..96b54f5 100644
--- a/addons/ooh323c/src/ooh323.h
+++ b/addons/ooh323c/src/ooh323.h
@@ -81,7 +81,7 @@
 /**
  * This function is used to process a received Facility message.
  * @param call       Handle to the call for which message has been received.
- * @param pQ931Msg   Pointer the the received Facility message.
+ * @param pQ931Msg   Pointer the received Facility message.
  *
  * @return           OO_OK, on success. OO_FAILED, on failure.
  */
diff --git a/apps/app_adsiprog.c b/apps/app_adsiprog.c
index 6d485d6..04aadb3 100644
--- a/apps/app_adsiprog.c
+++ b/apps/app_adsiprog.c
@@ -319,7 +319,7 @@
 	else if (!strcasecmp(page, "COMM"))
 		cmd = 0x80;
 	else {
-		ast_log(LOG_WARNING, "Expecting either 'INFO' or 'COMM' page, got got '%s' at line %d of %s\n", page, lineno, script);
+		ast_log(LOG_WARNING, "Expecting either 'INFO' or 'COMM' page, got '%s' at line %d of %s\n", page, lineno, script);
 		return 0;
 	}
 
diff --git a/apps/app_minivm.c b/apps/app_minivm.c
index 8f920e0..159584e 100644
--- a/apps/app_minivm.c
+++ b/apps/app_minivm.c
@@ -1352,7 +1352,7 @@
 	prep_email_sub_vars(chan, vmu, cidnum, cidname, dur, date, counter);
 
 	/* Find email address to use */
-	/* If there's a server e-mail address in the account, use that, othterwise template */
+	/* If there's a server e-mail address in the account, use that, otherwise template */
 	fromemail = ast_strlen_zero(vmu->serveremail) ?  template->serveremail : vmu->serveremail;
 
 	/* Find name to user for server e-mail */
diff --git a/apps/app_saycounted.c b/apps/app_saycounted.c
index b44c1f6..195a50a 100644
--- a/apps/app_saycounted.c
+++ b/apps/app_saycounted.c
@@ -39,7 +39,7 @@
 				<para>The number of things</para>
 			</parameter>
 			<parameter name="filename" required="true">
-				<para>File name stem for the noun that is the the name of the things</para>
+				<para>File name stem for the noun that is the name of the things</para>
 			</parameter>
 		</syntax>
 		<description>
diff --git a/apps/app_skel.c b/apps/app_skel.c
index 68f313f..e85598a 100644
--- a/apps/app_skel.c
+++ b/apps/app_skel.c
@@ -171,7 +171,7 @@
 };
 
 /*! \brief Object to hold level config information.
- * \note This object should hold a reference to an an object that holds state across reloads.
+ * \note This object should hold a reference to an object that holds state across reloads.
  * The other fields are just examples of the kind of data that might be stored in an level.
  */
 struct skel_level {
@@ -191,7 +191,7 @@
  * the running game.
  */
 struct skel_current_game {
-	uint32_t total_games;          /*! The total number of games for this call to to the app */
+	uint32_t total_games;          /*! The total number of games for this call to the app */
 	uint32_t games_left;           /*! How many games are left to play in this set */
 	uint32_t cheat;                /*! Whether or not cheating was enabled for the game */
 	struct skel_level *level_info; /*! The level information for the running game */
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 01111a1..0fcef76 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -1296,7 +1296,7 @@
 }
 
 /*!
- * \brief Sets a a specific property value.
+ * \brief Sets a specific property value.
  * \param vmu The voicemail user object to work with.
  * \param var The name of the property to be set.
  * \param value The value to be set to the property.
@@ -4727,7 +4727,7 @@
 
 /*! 
  * \brief Removes the voicemail sound and information file.
- * \param file The path to the sound file. This will be the the folder and message index, without the extension.
+ * \param file The path to the sound file. This will be the folder and message index, without the extension.
  *
  * This is used by the DELETE macro when voicemails are stored on the file system.
  *
@@ -8149,7 +8149,7 @@
  * 
  * When in the leave message mode (is_new_message == 1):
  *   - allow the leaving of a message for ourselves. (Will not allow us to forward a message to ourselves, when is_new_message == 0).
- *   - attempt to determine the context and and mailbox, and then invoke leave_message() function to record and store the message.
+ *   - attempt to determine the context and mailbox, and then invoke leave_message() function to record and store the message.
  *
  * When in the forward message mode (is_new_message == 0):
  *   - retrieves the current message to be forwarded
@@ -8250,7 +8250,7 @@
 				old_exten = ast_strdupa(ast_channel_exten(chan));
 				old_priority = ast_channel_priority(chan);
 
-				/* call the the Directory, changes the channel */
+				/* call the Directory, changes the channel */
 				snprintf(vmcontext, sizeof(vmcontext), "%s,,v", context ? context : "default");
 				res = pbx_exec(chan, directory_app, vmcontext);
 
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index b20a0f3..4859d1a 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -8000,7 +8000,7 @@
 						p->subs[otherindex].needunhold = 1;
 						p->owner = p->subs[SUB_REAL].owner;
 					} else {
-						ast_verb(3, "Dumping incomplete call on on %s\n", ast_channel_name(p->subs[SUB_THREEWAY].owner));
+						ast_verb(3, "Dumping incomplete call on %s\n", ast_channel_name(p->subs[SUB_THREEWAY].owner));
 						swap_subs(p, SUB_THREEWAY, SUB_REAL);
 						ast_channel_softhangup_internal_flag_add(p->subs[SUB_THREEWAY].owner, AST_SOFTHANGUP_DEV);
 						p->owner = p->subs[SUB_REAL].owner;
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index 6cac4bc..547226c 100644
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -389,7 +389,7 @@
 	/* struct ast_channel *owner; */
 	/* struct ast_rtp *rtp; */
 	/* struct sockaddr_in tmpdest; */
-	/* message go the the endpoint and not the channel so they stay here */
+	/* message go the endpoint and not the channel so they stay here */
 	struct ast_variable *chanvars;		/*!< Variables to set for channel created by user */
 	struct mgcp_endpoint *next;
 	struct mgcp_gateway *parent;
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6bd8205..eee873b 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -9239,7 +9239,7 @@
 }
 
 /*! \brief This function creates a dialog to handle a forked request.  This dialog
- * exists only to properly terminiate the the forked request immediately.
+ * exists only to properly terminiate the forked request immediately.
  */
 static void forked_invite_init(struct sip_request *req, const char *new_theirtag, struct sip_pvt *original, struct ast_sockaddr *addr)
 {
@@ -15731,7 +15731,7 @@
 	if (r->call && r->call->do_history) {
 		append_history(r->call, "RegistryRenew", "Account: %s@%s", r->username, r->hostname);
 	}
-	/* Since registry's are only added/removed by the the monitor thread, this
+	/* Since registry's are only added/removed by the monitor thread, this
 	   may be overkill to reference/dereference at all here */
 	if (sipdebug) {
 		ast_log(LOG_NOTICE, "   -- Re-registration for  %s@%s\n", r->username, r->hostname);
@@ -26153,7 +26153,7 @@
 
 		if (p->owner) {
 			ast_debug(3, "INVITE w Replaces on existing call? Refusing action. [%s]\n", p->callid);
-			transmit_response_reliable(p, "400 Bad request", req);	/* The best way to not not accept the transfer */
+			transmit_response_reliable(p, "400 Bad request", req);	/* The best way to not accept the transfer */
 			check_via(p, req);
 			copy_request(&p->initreq, req);
 			/* Do not destroy existing call */
@@ -26241,7 +26241,7 @@
 
 		if (replaces_pvt == p) {
 			ast_log(LOG_NOTICE, "INVITE with replaces into it's own call id (%s == %s)!\n", replace_id, p->callid);
-			transmit_response_reliable(p, "400 Bad request", req);	/* The best way to not not accept the transfer */
+			transmit_response_reliable(p, "400 Bad request", req);	/* The best way to not accept the transfer */
 			error = 1;
 		}
 
@@ -34192,7 +34192,7 @@
 }
 
 /*!
- * Hash function based on the the peer's ip address.  For IPv6, we use the end
+ * Hash function based on the peer's ip address.  For IPv6, we use the end
  * of the address.
  * \todo Find a better hashing function
  */
diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c
index f124c0f..fff7601 100644
--- a/channels/chan_unistim.c
+++ b/channels/chan_unistim.c
@@ -4964,7 +4964,7 @@
 				continue;
 			}
 			if (d->ssub[i] != sub) {
-				if (d->ssub[i] != NULL) { /* Found other subchannel active other then hangup'ed one */
+				if (d->ssub[i] != NULL) { /* Found other subchannel active other than hangup'ed one */
 					end_call = 0;
 				}
 				continue;
diff --git a/channels/sip/include/reqresp_parser.h b/channels/sip/include/reqresp_parser.h
index 2543329..eb2eb1e 100644
--- a/channels/sip/include/reqresp_parser.h
+++ b/channels/sip/include/reqresp_parser.h
@@ -59,7 +59,7 @@
  *   parts, user:secret.
  * - If the URI contains a port number, hostport will return with both
  *   parts, host:port.
- * - This function overwrites the the URI string.
+ * - This function overwrites the URI string.
  * 
  * \retval 0 on success
  * \retval -1 on error.
diff --git a/include/asterisk.h b/include/asterisk.h
index 899438b..b22b0d9 100644
--- a/include/asterisk.h
+++ b/include/asterisk.h
@@ -207,7 +207,7 @@
 
 #elif defined(AST_MODULE_SELF_SYM)
 
-/*! Retreive the 'struct ast_module *' for the current module. */
+/*! Retrieve the 'struct ast_module *' for the current module. */
 #define AST_MODULE_SELF AST_MODULE_SELF_SYM()
 
 struct ast_module;
diff --git a/include/asterisk/ast_version.h b/include/asterisk/ast_version.h
index 1ceac30..ff9c42f 100644
--- a/include/asterisk/ast_version.h
+++ b/include/asterisk/ast_version.h
@@ -41,7 +41,7 @@
  */
 const char *ast_get_version_num(void);
 
-/*! Retreive the Asterisk build options */
+/*! Retrieve the Asterisk build options */
 const char *ast_get_build_opts(void);
 
 #endif /* __AST_VERSION_H */
diff --git a/include/asterisk/astobj2.h b/include/asterisk/astobj2.h
index a18f099..1b7f387 100644
--- a/include/asterisk/astobj2.h
+++ b/include/asterisk/astobj2.h
@@ -145,7 +145,7 @@
 in this package. It is dependent on the refdebug being enabled in
 asterisk.conf.
 
-Each of the reference manipulations will generate one line of output in in the refs
+Each of the reference manipulations will generate one line of output in the refs
 log file. These lines look like this:
 ...
 0x8756f00,+1,1234,chan_sip.c,22240,load_module,**constructor**,allocate users
@@ -682,7 +682,7 @@
  * \since 14.0.0
  * \brief Get the weakproxy attached to obj
  *
- * \param obj The object to retreive a weakproxy from
+ * \param obj The object to retrieve a weakproxy from
  *
  * \return The weakproxy object
  */
@@ -1057,7 +1057,7 @@
 	OBJ_NODATA = (1 << 1),
 	/*!
 	 * Don't stop at the first match in ao2_callback() unless the
-	 * result of of the callback function has the CMP_STOP bit set.
+	 * result of the callback function has the CMP_STOP bit set.
 	 */
 	OBJ_MULTIPLE = (1 << 2),
 	/*!
diff --git a/include/asterisk/bridge_after.h b/include/asterisk/bridge_after.h
index 0451685..d4fcbea 100644
--- a/include/asterisk/bridge_after.h
+++ b/include/asterisk/bridge_after.h
@@ -33,7 +33,7 @@
 extern "C" {
 #endif
 
-/*! Reason the the after bridge callback will not be called. */
+/*! Reason the after bridge callback will not be called. */
 enum ast_bridge_after_cb_reason {
 	/*! The datastore is being destroyed.  Likely due to hangup. (Enum value must be zero.) */
 	AST_BRIDGE_AFTER_CB_REASON_DESTROY,
diff --git a/include/asterisk/bridge_features.h b/include/asterisk/bridge_features.h
index 7fcb85b..f9af8fb 100644
--- a/include/asterisk/bridge_features.h
+++ b/include/asterisk/bridge_features.h
@@ -721,7 +721,7 @@
  * \param limits pointer to an ast_bridge_features_limits struct that needs to be destroyed
  *
  * This function does not free memory allocated to the ast_bridge_features_limits struct, it only frees elements within the struct.
- * You must still call ast_free on the the struct if you allocated it with malloc.
+ * You must still call ast_free on the struct if you allocated it with malloc.
  */
 void ast_bridge_features_limits_destroy(struct ast_bridge_features_limits *limits);
 
diff --git a/include/asterisk/callerid.h b/include/asterisk/callerid.h
index f7d7719..143ffae 100644
--- a/include/asterisk/callerid.h
+++ b/include/asterisk/callerid.h
@@ -240,7 +240,7 @@
 int ast_isphonenumber(const char *n);
 
 /*!
- * \brief Check if a string consists only of digits and and + \# ( ) - .
+ * \brief Check if a string consists only of digits and + \# ( ) - .
  * (meaning it can be cleaned with ast_shrink_phone_number)
  * \param exten The extension (or URI) to be checked.
  * \retval 1 if string is valid AST shrinkable phone number
diff --git a/include/asterisk/http.h b/include/asterisk/http.h
index d5f54cc..63fb223 100644
--- a/include/asterisk/http.h
+++ b/include/asterisk/http.h
@@ -316,7 +316,7 @@
  * \param name out parameter pointing to the header name
  * \param value out parameter pointing to header value
  * \return -1 if buf is empty
- * \return 0 if buf could be separated into into name and value
+ * \return 0 if buf could be separated into name and value
  * \return 1 if name or value portion don't exist
  * \since 13
  */
diff --git a/include/asterisk/parking.h b/include/asterisk/parking.h
index 53dfe93..554c8d5 100644
--- a/include/asterisk/parking.h
+++ b/include/asterisk/parking.h
@@ -164,7 +164,7 @@
 	 * \param parker The \ref bridge_channel object that is initiating the parking
 	 * \param context The context to blind transfer to
 	 * \param exten The extension to blind transfer to
-	 * \param parked_channel_cb Execute the following function on the the channel that gets parked
+	 * \param parked_channel_cb Execute the following function on the channel that gets parked
 	 * \param parked_channel_data Data for the parked_channel_cb
 	 *
 	 * \note If the bridge \ref parker is in has more than one other occupant, the entire
@@ -236,7 +236,7 @@
  * \param context The context to blind transfer to
  * \param exten The extension to blind transfer to
  * \param exten The extension to blind transfer to
- * \param parked_channel_cb Execute the following function on the the channel that gets parked
+ * \param parked_channel_cb Execute the following function on the channel that gets parked
  * \param parked_channel_data Data for the parked_channel_cb
  *
  * \note If the bridge \ref parker is in has more than one other occupant, the entire
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h
index 008cfd3..4ff8e76 100644
--- a/include/asterisk/pbx.h
+++ b/include/asterisk/pbx.h
@@ -1108,7 +1108,7 @@
 int ast_unlock_context(struct ast_context *con);
 
 /*!
- * \brief locks the macrolock in the given given context
+ * \brief locks the macrolock in the given context
  *
  * \param macrocontext name of the macro-context to lock
  *
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h
index 963519d..d93630a 100644
--- a/include/asterisk/strings.h
+++ b/include/asterisk/strings.h
@@ -256,7 +256,7 @@
 
 /*!
   \brief Act like strsep but ignore separators inside quotes.
-  \param s Pointer to address of the the string to be processed.
+  \param s Pointer to address of the string to be processed.
   Will be modified and can't be constant.
   \param sep A single character delimiter.
   \param flags Controls post-processing of the result.
diff --git a/main/astmm.c b/main/astmm.c
index 9c26f0f..accd2ff 100644
--- a/main/astmm.c
+++ b/main/astmm.c
@@ -1455,7 +1455,7 @@
 	/*
 	 * Put the alloced list back into regions[].
 	 *
-	 * We have do do this because we can get called before all other
+	 * We have do this because we can get called before all other
 	 * threads have terminated.
 	 */
 	mm_atexit_hash_restore(&alloced_atexit);
diff --git a/main/astobj2.c b/main/astobj2.c
index da2d44e..63058e1 100644
--- a/main/astobj2.c
+++ b/main/astobj2.c
@@ -866,7 +866,7 @@
 		ao2_unlock(weakproxy);
 		/* It is possible for obj to be accessed now.  It's allowed
 		 * for weakproxy to already be in a container.  Another thread
-		 * could have been waiting for a lock on weakproxy to retreive
+		 * could have been waiting for a lock on weakproxy to retrieve
 		 * the object.
 		 */
 	}
diff --git a/main/db.c b/main/db.c
index afaf043..ff52254 100644
--- a/main/db.c
+++ b/main/db.c
@@ -129,7 +129,7 @@
 
 /* This query begs an explanation:
  *
- * First, the parameter binding syntax used here is slightly different then the other
+ * First, the parameter binding syntax used here is slightly different than the other
  * queries in that we use a numbered parameter so that we can bind once and get the same
  * value substituted multiple times within the executed query.
  *
diff --git a/main/editline/map.c b/main/editline/map.c
index 4187cb5..448c3c0 100644
--- a/main/editline/map.c
+++ b/main/editline/map.c
@@ -369,7 +369,7 @@
 				 * NOTE: These mappings do NOT Correspond well
 				 * to the KSH VI editing assignments.
 				 * On the other and they are convenient and
-				 * many people have have gotten used to them.
+				 * many people have gotten used to them.
 				 */
 	/*   0 */	ED_UNASSIGNED,		/* ^@ */
 	/*   1 */	ED_MOVE_TO_BEG,		/* ^A */
diff --git a/main/editline/refresh.c b/main/editline/refresh.c
index fcebe12..1acc261 100644
--- a/main/editline/refresh.c
+++ b/main/editline/refresh.c
@@ -1064,7 +1064,7 @@
 
 
 /* re_clear_display():
- *	clear the screen buffers so that new new prompt starts fresh.
+ *	clear the screen buffers so that new prompt starts fresh.
  */
 protected void
 re_clear_display(EditLine *el)
diff --git a/main/jitterbuf.c b/main/jitterbuf.c
index a4d1971..8ab68f4 100644
--- a/main/jitterbuf.c
+++ b/main/jitterbuf.c
@@ -356,7 +356,7 @@
 	frame->type = type;
 
 	/*
-	 * frames are a circular list, jb-frames points to to the lowest ts,
+	 * frames are a circular list, jb-frames points to the lowest ts,
 	 * jb->frames->prev points to the highest ts
 	 */
 
diff --git a/main/named_acl.c b/main/named_acl.c
index 393532a..0e0385b 100644
--- a/main/named_acl.c
+++ b/main/named_acl.c
@@ -401,7 +401,7 @@
 	return 0;
 
 publish_failure:
-	ast_log(LOG_ERROR, "Failed to to issue ACL change message for %s.\n",
+	ast_log(LOG_ERROR, "Failed to issue ACL change message for %s.\n",
 		ast_strlen_zero(name) ? "all named ACLs" : name);
 	return -1;
 }
diff --git a/main/netsock2.c b/main/netsock2.c
index 53a43e0..ef74ab9 100644
--- a/main/netsock2.c
+++ b/main/netsock2.c
@@ -607,7 +607,7 @@
 	/* If the sock address is IPv6, the TCLASS field must be set. */
 	set_tclass = !ast_getsockname(sockfd, &addr) && ast_sockaddr_is_ipv6(&addr) ? 1 : 0;
 
-	/* If the the sock address is IPv4 or (IPv6 set to any address [::]) set TOS bits */
+	/* If the sock address is IPv4 or (IPv6 set to any address [::]) set TOS bits */
 	set_tos = (!set_tclass || (set_tclass && ast_sockaddr_is_any(&addr))) ? 1 : 0;
 
 	if (set_tos) {
diff --git a/main/security_events.c b/main/security_events.c
index adcda3d..97aa04f 100644
--- a/main/security_events.c
+++ b/main/security_events.c
@@ -314,7 +314,7 @@
 				<parameter name="ReceivedChallenge" required="false">
 					<para>The challenge that was received.</para>
 				</parameter>
-				<parameter name="RecievedHash" required="false">
+				<parameter name="ReceivedHash" required="false">
 					<para>The hash that was received.</para>
 				</parameter>
 			</syntax>
diff --git a/main/stdtime/localtime.c b/main/stdtime/localtime.c
index eac199a..fd33d9f 100644
--- a/main/stdtime/localtime.c
+++ b/main/stdtime/localtime.c
@@ -1055,7 +1055,7 @@
 			int	result;
 
 			/* for temporary struct state --
-			 * macro flags the the struct as a stack temp.
+			 * macro flags the struct as a stack temp.
 			 * to prevent use within add_notify()
 			 */
 			SP_STACK_INIT(ts);
@@ -1775,7 +1775,7 @@
 		return;
 
 	/* If the desired time exceeds the bounds of the defined time transitions
-	* then give give up on determining DST info and simply look for gmt offset
+	* then give up on determining DST info and simply look for gmt offset
 	* This requires that I adjust the given time using increments of Gregorian
 	* repeats to place the time within the defined time transitions in the
 	* timezone structure.
diff --git a/main/threadpool.c b/main/threadpool.c
index 6240b73..874b2d8 100644
--- a/main/threadpool.c
+++ b/main/threadpool.c
@@ -702,7 +702,7 @@
 /*!
  * \brief ao2 callback to zombify a set number of threads.
  *
- * Threads will be zombified as long as as the counter has not reached
+ * Threads will be zombified as long as the counter has not reached
  * zero. The counter is decremented with each thread that is zombified.
  *
  * Zombifying a thread involves removing it from its current container,
diff --git a/menuselect/menuselect_gtk.c b/menuselect/menuselect_gtk.c
index 9379d7d..fcf755e 100644
--- a/menuselect/menuselect_gtk.c
+++ b/menuselect/menuselect_gtk.c
@@ -208,7 +208,7 @@
 
 	/* This function generates the menu items. Pass the item factory,
 	   the number of items in the array, the array itself, and any
-	   callback data for the the menu items. */
+	   callback data for the menu items. */
 	gtk_item_factory_create_items(item_factory, nmenu_items, menu_items, NULL);
 
 	/* Attach the new accelerator group to the window. */
diff --git a/res/ael/pval.c b/res/ael/pval.c
index b0a04fe..a191e79 100644
--- a/res/ael/pval.c
+++ b/res/ael/pval.c
@@ -2877,7 +2877,7 @@
 	   3. Does the number of macro args match the definition?
 	   4. Is a macro call missing its & at the front?
 	   5. Application calls-- we could check syntax for existing applications,
-	      but I need some some sort of universal description bnf for a general
+	      but I need some sort of universal description bnf for a general
 		  sort of method for checking arguments, in number, maybe even type, at least. 
 		  Don't want to hand code checks for hundreds of applications.
 	*/
diff --git a/res/parking/res_parking.h b/res/parking/res_parking.h
index f4ef2ea..3c34e5c 100644
--- a/res/parking/res_parking.h
+++ b/res/parking/res_parking.h
@@ -135,7 +135,7 @@
  * \param dynamic non-zero if creating a dynamic parking lot with this. Don't replace existing parking lots. Ever.
  *
  * \retval A reference to the new parking lot
- * \retval NULL if it was not found and could not be be allocated
+ * \retval NULL if it was not found and could not be allocated
  *
  * \note The parking lot will need to be unreffed if it ever falls out of scope
  * \note The parking lot will automatically be added to the parking lot container if needed as part of this process
diff --git a/res/res_config_sqlite3.c b/res/res_config_sqlite3.c
index bbf6db2..894f1a8 100644
--- a/res/res_config_sqlite3.c
+++ b/res/res_config_sqlite3.c
@@ -1180,7 +1180,7 @@
 	struct realtime_sqlite3_db *db;
 
 	/* SQLite3 columns are dynamically typed, with type affinity. Built-in functions will
-	 * return the results as char * anyway. The only field that that cannot contain text
+	 * return the results as char * anyway. The only field that cannot contain text
 	 * data is an INTEGER PRIMARY KEY, which must be a 64-bit signed integer. So, for
 	 * the purposes here we really only care whether the column exists and not what its
 	 * type or length is. */
diff --git a/res/res_fax.c b/res/res_fax.c
index 4a1c084..0938452 100644
--- a/res/res_fax.c
+++ b/res/res_fax.c
@@ -363,7 +363,7 @@
 					'gateway' and state is 'Uninitialized'.</para>
 				</parameter>
 				<parameter name="FileName" required="false">
-					<para>Filename of the image being sent/recieved for this FAX session. This field is not
+					<para>Filename of the image being sent/received for this FAX session. This field is not
 					included if Operation isn't 'send' or 'receive'.</para>
 				</parameter>
 				<parameter name="PagesTransmitted" required="false">
@@ -375,7 +375,7 @@
 					Operation is not 'send' or 'receive'. Will be 0 for 'send'.</para>
 				</parameter>
 				<parameter name="TotalBadLines" required="false">
-					<para>Total number of bad lines sent/recieved during this session. This field is not
+					<para>Total number of bad lines sent/received during this session. This field is not
 					included if Operation is not 'send' or 'received'.</para>
 				</parameter>
 			</syntax>
diff --git a/res/res_format_attr_opus.c b/res/res_format_attr_opus.c
index 1367f95..cf30cf5 100644
--- a/res/res_format_attr_opus.c
+++ b/res/res_format_attr_opus.c
@@ -115,7 +115,7 @@
 		/* Skip any preceeding blanks as some implementations separate attributes using spaces too */
 		kvp = ast_skip_blanks(kvp);
 
-		/* If we are at at the requested attribute get its value and return */
+		/* If we are at the requested attribute get its value and return */
 		if (!strncmp(kvp, name, strlen(name)) && kvp[strlen(name)] == '=') {
 			if (sscanf(kvp, "%*[^=]=%30d", &val) == 1) {
 				*attr = val;
diff --git a/res/res_pjsip/pjsip_configuration.c b/res/res_pjsip/pjsip_configuration.c
index 76cf528..84d6db1 100644
--- a/res/res_pjsip/pjsip_configuration.c
+++ b/res/res_pjsip/pjsip_configuration.c
@@ -1603,7 +1603,7 @@
 		return 0;
 	}
 
-	astman_send_listack(s, m, "Following are Events for each object associated with the the Endpoint",
+	astman_send_listack(s, m, "Following are Events for each object associated with the Endpoint",
 		"start");
 
 	/* the endpoint detail needs to always come first so apply as such */
diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c
index 59418e4..6a10c57 100644
--- a/res/res_pjsip_pubsub.c
+++ b/res/res_pjsip_pubsub.c
@@ -895,7 +895,7 @@
  * This iterates through the items on a resource list and creates tree nodes for each one. The
  * tree nodes created are children of the supplied parent node. If an item in the resource
  * list is itself a list, then this function is called recursively to provide children for
- * the the new node.
+ * the new node.
  *
  * If an item in a resource list is not a list, then the supplied subscription handler is
  * called into as if a new SUBSCRIBE for the list item were presented. The handler's response
diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c
index 958f225..64c150e 100644
--- a/res/res_pjsip_session.c
+++ b/res/res_pjsip_session.c
@@ -1067,7 +1067,7 @@
 
 /*!
  * \internal
- * \brief Convert delayed method enum value to to a string.
+ * \brief Convert delayed method enum value to a string.
  * \since 13.3.0
  *
  * \param method Delayed method enum value to convert to a string.
@@ -2241,7 +2241,7 @@
 	suspender->suspended = 1;
 	ast_cond_signal(&suspender->cond_suspended);
 
-	/* Wait for the the serializer suspension to be completed. */
+	/* Wait for the serializer suspension to be completed. */
 	while (!suspender->complete) {
 		ast_cond_wait(&suspender->cond_complete, ao2_object_get_lockaddr(suspender));
 	}
diff --git a/res/stasis/control.c b/res/stasis/control.c
index 01c04df..314d68a 100644
--- a/res/stasis/control.c
+++ b/res/stasis/control.c
@@ -851,7 +851,7 @@
  * they are finished with it.
  *
  * \retval NULL Unable to find/create the dial bridge
- * \retval non-NULL A reference to teh dial bridge
+ * \retval non-NULL A reference to the dial bridge
  */
 static struct ast_bridge *get_dial_bridge(void)
 {
diff --git a/tests/test_aoc.c b/tests/test_aoc.c
index 9d1e230..0adc28d 100644
--- a/tests/test_aoc.c
+++ b/tests/test_aoc.c
@@ -357,7 +357,7 @@
 		goto cleanup_aoc_test;
 	}
 
-	/* Set a currency name larger than 10 characters which is the the maximum
+	/* Set a currency name larger than 10 characters which is the maximum
 	 * length allowed by the ETSI aoc standard.  The name is expected to truncate
 	 * to 10 characters. */
 	if ((ast_aoc_set_currency_info(decoded, 100, AST_AOC_MULT_ONE, "12345678901234567890")) ||
diff --git a/tests/test_taskprocessor.c b/tests/test_taskprocessor.c
index ad2074c..273e045 100644
--- a/tests/test_taskprocessor.c
+++ b/tests/test_taskprocessor.c
@@ -652,7 +652,7 @@
 	/* Wait for shutdown to complete */
 	pthread_join(shutdown_thread, NULL);
 
-	/* Should have also also completed task2 */
+	/* Should have also completed task2 */
 	wait_res = shutdown_has_completed(task2);
 	if (!wait_res) {
 		ast_test_status_update(test, "Task2 didn't finish\n");

-- 
To view, visit https://gerrit.asterisk.org/7686
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3809a9c113b92fd9d0d9f9bac98e9c66dc8b2d31
Gerrit-Change-Number: 7686
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171220/b6955af0/attachment-0001.html>


More information about the asterisk-code-review mailing list