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

Josh Soref asteriskteam at digium.com
Sun Nov 7 00:13:51 CDT 2021


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


Change subject: spelling: parameter
......................................................................

spelling: parameter

Change-Id: I410d951a7b6aa82efdca03a03879f5847fbc074e
---
M CHANGES
M UPGRADE.txt
M addons/res_config_mysql.c
M channels/chan_sip.c
M include/asterisk/acl.h
M include/asterisk/presencestate.h
M main/enum.c
M main/manager.c
M main/xmldoc.c
M res/res_agi.c
M res/res_config_pgsql.c
M res/res_stir_shaken.c
12 files changed, 25 insertions(+), 25 deletions(-)



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

diff --git a/CHANGES b/CHANGES
index d5dc76c..f906983 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2616,7 +2616,7 @@
    of whether the application 'controls' the resource. This is useful for
    scenarios where an ARI application merely wants to observe the system,
    as opposed to control it. There are two ways to accomplish this:
-   (1) Via the WebSocket connection URI. A new query paramter, 'subscribeAll',
+   (1) Via the WebSocket connection URI. A new query parameter, 'subscribeAll',
        has been added that, when present and True, will subscribe all
        specified applications to all ARI event sources in Asterisk.
    (2) Via the applications resource. An ARI client can, at any time, subscribe
diff --git a/UPGRADE.txt b/UPGRADE.txt
index f128214..d39616b 100644
--- a/UPGRADE.txt
+++ b/UPGRADE.txt
@@ -1476,7 +1476,7 @@
    performance should be vastly improved.  The HANGUPCAUSE function should now
    be used instead of SIP_CAUSE. Because of this, the storesipcause option in
    sip.conf is also deprecated.
- - The sip paramater for Originating Line Information (oli, isup-oli, and
+ - The sip parameter for Originating Line Information (oli, isup-oli, and
    ss7-oli) is now parsed out of the From header and copied into the channel's
    ANI2 information field.  This is readable from the CALLERID(ani2) dialplan
    function.
diff --git a/addons/res_config_mysql.c b/addons/res_config_mysql.c
index 359158b..5b0e0f4 100644
--- a/addons/res_config_mysql.c
+++ b/addons/res_config_mysql.c
@@ -334,7 +334,7 @@
 		return NULL;
 	}
 
-	/* Get the first parameter and first value in our list of passed paramater/value pairs */
+	/* Get the first parameter and first value in our list of passed parameter/value pairs */
 	if (!field) {
 		ast_log(LOG_WARNING, "MySQL RealTime: Realtime retrieval requires at least 1 parameter and 1 value to search on.\n");
 		release_database(dbh);
@@ -454,7 +454,7 @@
 		return NULL;
 	}
 
-	/* Get the first parameter and first value in our list of passed paramater/value pairs */
+	/* Get the first parameter and first value in our list of passed parameter/value pairs */
 	if (!field) {
 		ast_log(LOG_WARNING, "MySQL RealTime: Realtime retrieval requires at least 1 parameter and 1 value to search on.\n");
 		ast_config_destroy(cfg);
@@ -584,7 +584,7 @@
 		return -1;
 	}
 
-	/* Get the first parameter and first value in our list of passed paramater/value pairs */
+	/* Get the first parameter and first value in our list of passed parameter/value pairs */
 	if (!field) {
 		ast_log(LOG_WARNING, "MySQL RealTime: Realtime update requires at least 1 parameter and 1 value to update.\n");
 		release_table(table);
@@ -767,7 +767,7 @@
 		release_database(dbh);
 		return -1;
 	}
-	/* Get the first parameter and first value in our list of passed paramater/value pairs */
+	/* Get the first parameter and first value in our list of passed parameter/value pairs */
 	if (!field) {
 		ast_log(LOG_WARNING, "MySQL RealTime: Realtime storage requires at least 1 parameter and 1 value to search on.\n");
 		release_database(dbh);
@@ -826,7 +826,7 @@
 		return -1;
 	}
 
-	/* Get the first parameter and first value in our list of passed paramater/value pairs */
+	/* Get the first parameter and first value in our list of passed parameter/value pairs */
 	/* newparam = va_arg(ap, const char *);
 	newval = va_arg(ap, const char *);*/
 	if (ast_strlen_zero(keyfield) || ast_strlen_zero(lookup))  {
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 26a39c5..bc4fce1 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -17258,7 +17258,7 @@
 }
 
 /*! \brief Build route list from Path header
- *  RFC 3327 requires that the Path header contains SIP URIs with lr paramter.
+ *  RFC 3327 requires that the Path header contains SIP URIs with lr parameter.
  *  Thus, we do not care about strict routing SIP routers
  */
 static int build_path(struct sip_pvt *p, struct sip_peer *peer, struct sip_request *req, const char *pathbuf)
diff --git a/include/asterisk/acl.h b/include/asterisk/acl.h
index def98c8..6f39cc2 100644
--- a/include/asterisk/acl.h
+++ b/include/asterisk/acl.h
@@ -342,7 +342,7 @@
  * \details
  * A deep copy of an ast_acl list is made (which in turn means a deep copy of
  * each of the ast_ha structs contained within). The returned value is allocated
- * on the heap and must be freed independently of the input paramater when
+ * on the heap and must be freed independently of the input parameter when
  * finished.
  *
  * \param original The ast_acl_list to copy
diff --git a/include/asterisk/presencestate.h b/include/asterisk/presencestate.h
index 87deda7..bad98c4 100644
--- a/include/asterisk/presencestate.h
+++ b/include/asterisk/presencestate.h
@@ -63,8 +63,8 @@
  * \brief Asks a presence state provider for the current presence state.
  *
  * \param presence_provider The presence provider to retrieve the state from.
- * \param subtype The output paramenter to store the subtype string in. Must be freed if returned
- * \param message The output paramenter to store the message string in. Must be freed if returned
+ * \param subtype The output parameter to store the subtype string in. Must be freed if returned
+ * \param message The output parameter to store the message string in. Must be freed if returned
  *
  * \retval presence state value on success,
  * \retval -1 on failure.
@@ -79,8 +79,8 @@
  * and should be bypassed.
  *
  * \param presence_provider The presence provider to retrieve the state from.
- * \param subtype The output paramenter to store the subtype string in. Must be freed if returned
- * \param message The output paramenter to store the message string in. Must be freed if returned
+ * \param subtype The output parameter to store the subtype string in. Must be freed if returned
+ * \param message The output parameter to store the message string in. Must be freed if returned
  *
  * \retval presence state value on success,
  * \retval -1 on failure.
diff --git a/main/enum.c b/main/enum.c
index 4c0f253..4d17c56 100644
--- a/main/enum.c
+++ b/main/enum.c
@@ -675,7 +675,7 @@
 
 /*
   We don't need that any more, that "n" preceding the number has been replaced by a flag
-  in the options paramter.
+  in the options parameter.
 	ast_copy_string(naptrinput, number, sizeof(naptrinput));
 */
 /*
diff --git a/main/manager.c b/main/manager.c
index 3c60af6..90a4f8b 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -1146,7 +1146,7 @@
 				this value along with the optional UnitType value are entries in a list.  To accommodate this
 				these values take an index value starting at 0 which can be used to generate this list of
 				unit entries.  For Example, If two unit entires were required this could be achieved by setting the
-				paramter UnitAmount(0)=1234 and UnitAmount(1)=5678.  Note that UnitAmount at index 0 is
+				parameter UnitAmount(0)=1234 and UnitAmount(1)=5678.  Note that UnitAmount at index 0 is
 				required when ChargeType=Unit, all other entries in the list are optional.
 				</para>
 			</parameter>
diff --git a/main/xmldoc.c b/main/xmldoc.c
index 0a2c33a..57bd40d 100644
--- a/main/xmldoc.c
+++ b/main/xmldoc.c
@@ -924,7 +924,7 @@
  *
  * \param fixnode The <syntax> node pointer.
  * \param name The name of the 'command'.
- * \param printname Print the name of the command before the paramters?
+ * \param printname Print the name of the command before the parameters?
  *
  * \retval On error, return just 'name'.
  * \retval On success return the generated syntax.
diff --git a/res/res_agi.c b/res/res_agi.c
index 631c9b8..e7b246c 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -2290,7 +2290,7 @@
 		ast_close_fds_above_n(STDERR_FILENO + 1);
 
 		/* Execute script */
-		/* XXX argv should be deprecated in favor of passing agi_argX paramaters */
+		/* XXX argv should be deprecated in favor of passing agi_argX parameters */
 		execv(script, argv);
 		/* Can't use ast_log since FD's are closed */
 		ast_child_verbose(1, "Failed to execute '%s': %s", script, strerror(errno));
@@ -2353,7 +2353,7 @@
 	ast_agi_send(fd, chan, "agi_threadid: %ld\n", (long)pthread_self());
 
 	/* Send any parameters to the fastagi server that have been passed via the agi application */
-	/* Agi application paramaters take the form of: AGI(/path/to/example/script|${EXTEN}) */
+	/* Agi application parameters take the form of: AGI(/path/to/example/script|${EXTEN}) */
 	for(count = 1; count < argc; count++)
 		ast_agi_send(fd, chan, "agi_arg_%d: %s\n", count, argv[count]);
 
diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c
index 6f49f8e..14519c4 100644
--- a/res/res_config_pgsql.c
+++ b/res/res_config_pgsql.c
@@ -421,7 +421,7 @@
 		return NULL;
 	}
 
-	/* Get the first parameter and first value in our list of passed paramater/value pairs */
+	/* Get the first parameter and first value in our list of passed parameter/value pairs */
 	if (!field) {
 		ast_log(LOG_WARNING,
 				"PostgreSQL RealTime: Realtime retrieval requires at least 1 parameter and 1 value to search on.\n");
@@ -561,7 +561,7 @@
 		return NULL;
 	}
 
-	/* Get the first parameter and first value in our list of passed paramater/value pairs */
+	/* Get the first parameter and first value in our list of passed parameter/value pairs */
 	if (!field) {
 		ast_log(LOG_WARNING,
 				"PostgreSQL RealTime: Realtime retrieval requires at least 1 parameter and 1 value to search on.\n");
@@ -736,7 +736,7 @@
 		return -1;
 	}
 
-	/* Get the first parameter and first value in our list of passed paramater/value pairs */
+	/* Get the first parameter and first value in our list of passed parameter/value pairs */
 	if (!field) {
 		ast_log(LOG_WARNING,
 				"PostgreSQL RealTime: Realtime retrieval requires at least 1 parameter and 1 value to search on.\n");
@@ -997,7 +997,7 @@
 		return -1;
 	}
 
-	/* Get the first parameter and first value in our list of passed paramater/value pairs */
+	/* Get the first parameter and first value in our list of passed parameter/value pairs */
 	if (!field) {
 		ast_log(LOG_WARNING,
 				"PostgreSQL RealTime: Realtime storage requires at least 1 parameter and 1 value to store.\n");
@@ -1079,7 +1079,7 @@
 		return -1;
 	}
 
-	/* Get the first parameter and first value in our list of passed paramater/value pairs */
+	/* Get the first parameter and first value in our list of passed parameter/value pairs */
 	if (ast_strlen_zero(keyfield) || ast_strlen_zero(lookup))  {
 		ast_log(LOG_WARNING,
 				"PostgreSQL RealTime: Realtime destroy requires at least 1 parameter and 1 value to search on.\n");
diff --git a/res/res_stir_shaken.c b/res/res_stir_shaken.c
index eb5ba55..3db1c92 100644
--- a/res/res_stir_shaken.c
+++ b/res/res_stir_shaken.c
@@ -1243,7 +1243,7 @@
 		size_t count = 0;
 
 		if (!ast_strlen_zero(second)) {
-			ast_log(LOG_ERROR, "%s only takes 1 paramater for 'count'\n", function);
+			ast_log(LOG_ERROR, "%s only takes 1 parameter for 'count'\n", function);
 			return -1;
 		}
 
@@ -1264,7 +1264,7 @@
 	 * we are searching for will be the second parameter. The index is the first.
 	 */
 	if (ast_strlen_zero(second)) {
-		ast_log(LOG_ERROR, "Retrieving a value using %s requires two paramaters (index, value) "
+		ast_log(LOG_ERROR, "Retrieving a value using %s requires two parameters (index, value) "
 			"- only index was given\n", function);
 		return -1;
 	}

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

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I410d951a7b6aa82efdca03a03879f5847fbc074e
Gerrit-Change-Number: 17086
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/8d44e712/attachment-0001.html>


More information about the asterisk-code-review mailing list