<p>Richard Mudgett has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/10506">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Fix 'statement' typo throughout code.<br><br>Most were in comments. A couple were in warning messages.<br><br>Pointed out by Jonathan H on the Asterisk users mailing list.<br><br>Change-Id: I6286939dff5d0a27a2758140570106f1cb351855<br>---<br>M addons/ooh323c/src/ooasn1.h<br>M main/db.c<br>M res/res_config_ldap.c<br>M utils/astdb2sqlite3.c<br>4 files changed, 11 insertions(+), 11 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/06/10506/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/addons/ooh323c/src/ooasn1.h b/addons/ooh323c/src/ooasn1.h</span><br><span>index 8355c54..4fee621 100644</span><br><span>--- a/addons/ooh323c/src/ooasn1.h</span><br><span>+++ b/addons/ooh323c/src/ooasn1.h</span><br><span>@@ -664,7 +664,7 @@</span><br><span> /**</span><br><span> * This function adds an integer parameter to an error information structure.</span><br><span> * Parameter substitution is done in much the same way as it is done in C</span><br><span style="color: hsl(0, 100%, 40%);">- * printf statments. The base error message specification that goes along with</span><br><span style="color: hsl(120, 100%, 40%);">+ * printf statements. The base error message specification that goes along with</span><br><span> * a particular status code may have variable fields built in using '%'</span><br><span> * modifiers. These would be replaced with actual parameter data.</span><br><span> *</span><br><span>@@ -680,7 +680,7 @@</span><br><span> /**</span><br><span> * This function adds an string parameter to an error information structure.</span><br><span> * Parameter substitution is done in much the same way as it is done in C</span><br><span style="color: hsl(0, 100%, 40%);">- * printf statments. The base error message specification that goes along with</span><br><span style="color: hsl(120, 100%, 40%);">+ * printf statements. The base error message specification that goes along with</span><br><span> * a particular status code may have variable fields built in using '%'</span><br><span> * modifiers. These would be replaced with actual parameter data.</span><br><span> *</span><br><span>@@ -697,7 +697,7 @@</span><br><span> /**</span><br><span> * This function adds an unsigned integer parameter to an error information</span><br><span> * structure. Parameter substitution is done in much the same way as it is done</span><br><span style="color: hsl(0, 100%, 40%);">- * in C printf statments. The base error message specification that goes along</span><br><span style="color: hsl(120, 100%, 40%);">+ * in C printf statements. The base error message specification that goes along</span><br><span> * with a particular status code may have variable fields built in using '%'</span><br><span> * modifiers. These would be replaced with actual parameter data.</span><br><span> *</span><br><span>diff --git a/main/db.c b/main/db.c</span><br><span>index bf73020..4d1b372 100644</span><br><span>--- a/main/db.c</span><br><span>+++ b/main/db.c</span><br><span>@@ -191,8 +191,8 @@</span><br><span> </span><br><span> static int init_statements(void)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">- /* Don't initialize create_astdb_statment here as the astdb table needs to exist</span><br><span style="color: hsl(0, 100%, 40%);">- * brefore these statments can be initialized */</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Don't initialize create_astdb_statement here as the astdb table needs to exist</span><br><span style="color: hsl(120, 100%, 40%);">+ * brefore these statements can be initialized */</span><br><span> return init_stmt(&get_stmt, get_stmt_sql, sizeof(get_stmt_sql))</span><br><span> || init_stmt(&del_stmt, del_stmt_sql, sizeof(del_stmt_sql))</span><br><span> || init_stmt(&deltree_stmt, deltree_stmt_sql, sizeof(deltree_stmt_sql))</span><br><span>@@ -347,7 +347,7 @@</span><br><span> ast_log(LOG_WARNING, "Couldn't bind value to stmt: %s\n", sqlite3_errmsg(astdb));</span><br><span> res = -1;</span><br><span> } else if (sqlite3_step(put_stmt) != SQLITE_DONE) {</span><br><span style="color: hsl(0, 100%, 40%);">- ast_log(LOG_WARNING, "Couldn't execute statment: %s\n", sqlite3_errmsg(astdb));</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_log(LOG_WARNING, "Couldn't execute statement: %s\n", sqlite3_errmsg(astdb));</span><br><span> res = -1;</span><br><span> }</span><br><span> </span><br><span>diff --git a/res/res_config_ldap.c b/res/res_config_ldap.c</span><br><span>index 6137236..91be91a 100644</span><br><span>--- a/res/res_config_ldap.c</span><br><span>+++ b/res/res_config_ldap.c</span><br><span>@@ -89,7 +89,7 @@</span><br><span> int metric;</span><br><span> const char *variable_name;</span><br><span> const char *variable_value;</span><br><span style="color: hsl(0, 100%, 40%);">- int var_metric; /*!< For organizing variables (particularly includes and switch statments) within a context */</span><br><span style="color: hsl(120, 100%, 40%);">+ int var_metric; /*!< For organizing variables (particularly includes and switch statements) within a context */</span><br><span> };</span><br><span> </span><br><span> /*! \brief Table configuration</span><br><span>@@ -1032,7 +1032,7 @@</span><br><span> </span><br><span> /*! \brief See Asterisk doc</span><br><span> *</span><br><span style="color: hsl(0, 100%, 40%);">- * 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);</span><br><span style="color: hsl(120, 100%, 40%);">+ * 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);</span><br><span> * however, the ast_load_realtime wil match on wildcharacters also depending on what the mode is set to</span><br><span> * this is an area of asterisk that could do with a lot of modification</span><br><span> * I think this function returns Realtime dynamic objects</span><br><span>diff --git a/utils/astdb2sqlite3.c b/utils/astdb2sqlite3.c</span><br><span>index ba35f93..fa00bc9 100644</span><br><span>--- a/utils/astdb2sqlite3.c</span><br><span>+++ b/utils/astdb2sqlite3.c</span><br><span>@@ -95,7 +95,7 @@</span><br><span> fprintf(stderr, "Couldn't bind value to stmt: %s\n", sqlite3_errmsg(astdb));</span><br><span> res = -1;</span><br><span> } else if (sqlite3_step(put_stmt) != SQLITE_DONE) {</span><br><span style="color: hsl(0, 100%, 40%);">- fprintf(stderr, "Couldn't execute statment: %s\n", sqlite3_errmsg(astdb));</span><br><span style="color: hsl(120, 100%, 40%);">+ fprintf(stderr, "Couldn't execute statement: %s\n", sqlite3_errmsg(astdb));</span><br><span> res = -1;</span><br><span> }</span><br><span> sqlite3_reset(put_stmt);</span><br><span>@@ -168,8 +168,8 @@</span><br><span> </span><br><span> static int init_statements(void)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">- /* Don't initialize create_astdb_statment here as the astdb table needs to exist</span><br><span style="color: hsl(0, 100%, 40%);">- * brefore these statments can be initialized */</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Don't initialize create_astdb_statement here as the astdb table needs to exist</span><br><span style="color: hsl(120, 100%, 40%);">+ * brefore these statements can be initialized */</span><br><span> return init_stmt(&put_stmt, put_stmt_sql, sizeof(put_stmt_sql));</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10506">change 10506</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/10506"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I6286939dff5d0a27a2758140570106f1cb351855 </div>
<div style="display:none"> Gerrit-Change-Number: 10506 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>