[asterisk-commits] Fix 'statement' typo throughout code. (asterisk[16])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 19 09:05:57 CDT 2018


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/10507 )

Change subject: Fix 'statement' typo throughout code.
......................................................................

Fix 'statement' typo throughout code.

Most were in comments.  A couple were in warning messages.

Pointed out by Jonathan H on the Asterisk users mailing list.

Change-Id: I6286939dff5d0a27a2758140570106f1cb351855
---
M addons/ooh323c/src/ooasn1.h
M main/db.c
M res/res_config_ldap.c
M utils/astdb2sqlite3.c
4 files changed, 11 insertions(+), 11 deletions(-)

Approvals:
  Corey Farrell: Looks good to me, but someone else must approve
  Sean Bright: Looks good to me, approved
  Jenkins2: Approved for Submit



diff --git a/addons/ooh323c/src/ooasn1.h b/addons/ooh323c/src/ooasn1.h
index 8355c54..4fee621 100644
--- a/addons/ooh323c/src/ooasn1.h
+++ b/addons/ooh323c/src/ooasn1.h
@@ -664,7 +664,7 @@
 /**
  * This function adds an integer parameter to an error information structure.
  * Parameter substitution is done in much the same way as it is done in C
- * printf statments. The base error message specification that goes along with
+ * printf statements. The base error message specification that goes along with
  * a particular status code may have variable fields built in using '%'
  * modifiers. These would be replaced with actual parameter data.
  *
@@ -680,7 +680,7 @@
 /**
  * This function adds an string parameter to an error information structure.
  * Parameter substitution is done in much the same way as it is done in C
- * printf statments. The base error message specification that goes along with
+ * printf statements. The base error message specification that goes along with
  * a particular status code may have variable fields built in using '%'
  * modifiers. These would be replaced with actual parameter data.
  *
@@ -697,7 +697,7 @@
 /**
  * This function adds an unsigned integer parameter to an error information
  * structure. Parameter substitution is done in much the same way as it is done
- * in C printf statments. The base error message specification that goes along
+ * in C printf statements. The base error message specification that goes along
  * with a particular status code may have variable fields built in using '%'
  * modifiers. These would be replaced with actual parameter data.
  *
diff --git a/main/db.c b/main/db.c
index f30d3fe..e74c46b 100644
--- a/main/db.c
+++ b/main/db.c
@@ -189,8 +189,8 @@
 
 static int init_statements(void)
 {
-	/* Don't initialize create_astdb_statment here as the astdb table needs to exist
-	 * brefore these statments can be initialized */
+	/* Don't initialize create_astdb_statement here as the astdb table needs to exist
+	 * brefore these statements can be initialized */
 	return init_stmt(&get_stmt, get_stmt_sql, sizeof(get_stmt_sql))
 	|| init_stmt(&del_stmt, del_stmt_sql, sizeof(del_stmt_sql))
 	|| init_stmt(&deltree_stmt, deltree_stmt_sql, sizeof(deltree_stmt_sql))
@@ -345,7 +345,7 @@
 		ast_log(LOG_WARNING, "Couldn't bind value to stmt: %s\n", sqlite3_errmsg(astdb));
 		res = -1;
 	} else if (sqlite3_step(put_stmt) != SQLITE_DONE) {
-		ast_log(LOG_WARNING, "Couldn't execute statment: %s\n", sqlite3_errmsg(astdb));
+		ast_log(LOG_WARNING, "Couldn't execute statement: %s\n", sqlite3_errmsg(astdb));
 		res = -1;
 	}
 
diff --git a/res/res_config_ldap.c b/res/res_config_ldap.c
index 8edc32a..accd633 100644
--- a/res/res_config_ldap.c
+++ b/res/res_config_ldap.c
@@ -87,7 +87,7 @@
 	int metric;
 	const char *variable_name;
 	const char *variable_value;
-	int var_metric; /*!< For organizing variables (particularly includes and switch statments) within a context */
+	int var_metric; /*!< For organizing variables (particularly includes and switch statements) within a context */
 };
 
 /*! \brief Table configuration
@@ -1030,7 +1030,7 @@
 
 /*! \brief See Asterisk doc
  *
- * this function will be called for the switch statment if no match is found with the realtime_ldap function(i.e. it is a failover);
+ * this function will be called for the switch statement if no match is found with the realtime_ldap function(i.e. it is a failover);
  * however, the ast_load_realtime wil match on wildcharacters also depending on what the mode is set to
  * this is an area of asterisk that could do with a lot of modification
  * I think this function returns Realtime dynamic objects
diff --git a/utils/astdb2sqlite3.c b/utils/astdb2sqlite3.c
index 38080e8..e70167d 100644
--- a/utils/astdb2sqlite3.c
+++ b/utils/astdb2sqlite3.c
@@ -93,7 +93,7 @@
 		fprintf(stderr, "Couldn't bind value to stmt: %s\n", sqlite3_errmsg(astdb));
 		res = -1;
 	} else if (sqlite3_step(put_stmt) != SQLITE_DONE) {
-		fprintf(stderr, "Couldn't execute statment: %s\n", sqlite3_errmsg(astdb));
+		fprintf(stderr, "Couldn't execute statement: %s\n", sqlite3_errmsg(astdb));
 		res = -1;
 	}
 	sqlite3_reset(put_stmt);
@@ -166,8 +166,8 @@
 
 static int init_statements(void)
 {
-	/* Don't initialize create_astdb_statment here as the astdb table needs to exist
-	 * brefore these statments can be initialized */
+	/* Don't initialize create_astdb_statement here as the astdb table needs to exist
+	 * brefore these statements can be initialized */
 	return init_stmt(&put_stmt, put_stmt_sql, sizeof(put_stmt_sql));
 }
 

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

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-MessageType: merged
Gerrit-Change-Id: I6286939dff5d0a27a2758140570106f1cb351855
Gerrit-Change-Number: 10507
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2 (1000185)
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-commits/attachments/20181019/11997180/attachment.html>


More information about the asterisk-commits mailing list