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

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


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


Change subject: spelling: occurrence
......................................................................

spelling: occurrence

Change-Id: If132dbf6fb373423cdc4c982be1c3fde7a18a93d
---
M apps/app_minivm.c
M apps/app_voicemail.c
M contrib/scripts/sip_to_pjsip/astconfigparser.py
M include/asterisk/adsi.h
M res/res_config_ldap.c
M tests/test_dns_srv.c
6 files changed, 13 insertions(+), 13 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/61/17061/1

diff --git a/apps/app_minivm.c b/apps/app_minivm.c
index d83a6e7..b4f1245 100644
--- a/apps/app_minivm.c
+++ b/apps/app_minivm.c
@@ -1204,7 +1204,7 @@
 }
 
 /*!\internal
- * \brief Wraps a character sequence in double quotes, escaping occurences of quotes within the string.
+ * \brief Wraps a character sequence in double quotes, escaping occurrences of quotes within the string.
  * \param from The string to work with.
  * \param buf The destination buffer to write the modified quoted string.
  * \param maxlen Always zero.  \see ast_str
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 77cf0b7..9f7771c 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -4954,7 +4954,7 @@
 }
 
 /*!
- * \brief Wraps a character sequence in double quotes, escaping occurences of quotes within the string.
+ * \brief Wraps a character sequence in double quotes, escaping occurrences of quotes within the string.
  * \param from The string to work with.
  * \param buf The buffer into which to write the modified quoted string.
  * \param maxlen Always zero, but see \see ast_str
diff --git a/contrib/scripts/sip_to_pjsip/astconfigparser.py b/contrib/scripts/sip_to_pjsip/astconfigparser.py
index eb48b70..4852d30 100644
--- a/contrib/scripts/sip_to_pjsip/astconfigparser.py
+++ b/contrib/scripts/sip_to_pjsip/astconfigparser.py
@@ -222,7 +222,7 @@
         # otherwise it was an embedded comment so combine
         return ''.join([part[0].strip(), ' ', line]).rstrip(), False
 
-    # find the first occurence of a comment that is not escaped
+    # find the first occurrence of a comment that is not escaped
     match = re.match(r'.*?([^\\];)', line)
 
     if match:
diff --git a/include/asterisk/adsi.h b/include/asterisk/adsi.h
index 9834b91..a13a359 100644
--- a/include/asterisk/adsi.h
+++ b/include/asterisk/adsi.h
@@ -97,8 +97,8 @@
 #define ADSI_START_CLEAR_TIMER	0x9B	/* Start / Clear timer */
 #define ADSI_SET_SCRIPT_FLAG	0x9C	/* Set / clear a script flag */
 #define ADSI_JUMP_TO_SUBSCRIPT	0x9D	/* Jump to specified subscript */
-#define ADSI_EVENT_22_TRIGGER	0x9E	/* Trigger an occurance of event 22 */
-#define ADSI_EVENT_23_TRIGGER	0x9f	/* Trigger an occurance of event 23 */
+#define ADSI_EVENT_22_TRIGGER	0x9E	/* Trigger an occurrence of event 22 */
+#define ADSI_EVENT_23_TRIGGER	0x9f	/* Trigger an occurrence of event 23 */
 #define ADSI_EXIT		0xA0	/* Exit the service script interpreter */
 #endif
 
diff --git a/res/res_config_ldap.c b/res/res_config_ldap.c
index 5465c59..ef618fe 100644
--- a/res/res_config_ldap.c
+++ b/res/res_config_ldap.c
@@ -163,7 +163,7 @@
 /*! \brief Count  semicolons in string
  * \param somestr - pointer to a string
  *
- * \return number of occurances of the delimiter(semicolon)
+ * \return number of occurrences of the delimiter(semicolon)
  */
 static int semicolon_count_str(const char *somestr)
 {
diff --git a/tests/test_dns_srv.c b/tests/test_dns_srv.c
index db71beb..a8a1455 100644
--- a/tests/test_dns_srv.c
+++ b/tests/test_dns_srv.c
@@ -266,7 +266,7 @@
 		{ 10, 20, 5060, "goose.down" },
 	};
 
-	int srv_record_occurence[2] = { 0, };
+	int srv_record_occurrence[2] = { 0, };
 	enum ast_test_result_state res = AST_TEST_PASS;
 	int count = 0;
 
@@ -322,14 +322,14 @@
 				continue;
 			}
 
-			srv_record_occurence[i]++;
+			srv_record_occurrence[i]++;
 			break;
 		}
 
 		ast_dns_result_free(result);
 	}
 
-	if (srv_record_occurence[0] > srv_record_occurence[1]) {
+	if (srv_record_occurrence[0] > srv_record_occurrence[1]) {
 		ast_test_status_update(test, "SRV sorting resulted in lesser weight being returned more often\n");
 		res = AST_TEST_FAIL;
 	}
@@ -355,7 +355,7 @@
 	};
 
 	int srv_record_priority[4] = { 5, 5, 10, 10 };
-	int srv_record_occurence[4] = { 0, };
+	int srv_record_occurrence[4] = { 0, };
 	enum ast_test_result_state res = AST_TEST_PASS;
 	int count = 0;
 
@@ -421,19 +421,19 @@
 				continue;
 			}
 
-			srv_record_occurence[i]++;
+			srv_record_occurrence[i]++;
 			break;
 		}
 
 		ast_dns_result_free(result);
 	}
 
-	if (srv_record_occurence[0] > srv_record_occurence[1]) {
+	if (srv_record_occurrence[0] > srv_record_occurrence[1]) {
 		ast_test_status_update(test, "SRV sorting resulted in lesser weight being returned more often for priority 10\n");
 		res = AST_TEST_FAIL;
 	}
 
-	if (srv_record_occurence[3] > srv_record_occurence[2]) {
+	if (srv_record_occurrence[3] > srv_record_occurrence[2]) {
 		ast_test_status_update(test, "SRV sorting resulted in lesser weight being returned more often for priority 5\n");
 		res = AST_TEST_FAIL;
 	}

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

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: If132dbf6fb373423cdc4c982be1c3fde7a18a93d
Gerrit-Change-Number: 17061
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/4140ed29/attachment.html>


More information about the asterisk-code-review mailing list