<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/10507">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Corey Farrell: Looks good to me, but someone else must approve
  Sean Bright: Looks good to me, approved
  Jenkins2: Approved for Submit

</div><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;"><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 f30d3fe..e74c46b 100644</span><br><span>--- a/main/db.c</span><br><span>+++ b/main/db.c</span><br><span>@@ -189,8 +189,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>@@ -345,7 +345,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 8edc32a..accd633 100644</span><br><span>--- a/res/res_config_ldap.c</span><br><span>+++ b/res/res_config_ldap.c</span><br><span>@@ -87,7 +87,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>@@ -1030,7 +1030,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 38080e8..e70167d 100644</span><br><span>--- a/utils/astdb2sqlite3.c</span><br><span>+++ b/utils/astdb2sqlite3.c</span><br><span>@@ -93,7 +93,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>@@ -166,8 +166,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/10507">change 10507</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/10507"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I6286939dff5d0a27a2758140570106f1cb351855 </div>
<div style="display:none"> Gerrit-Change-Number: 10507 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>