<p>Jaco Kroon has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13816">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">addons/res_config_mysql: silense warnings about printf format errors.<br><br>Change-Id: I2af4d419a37c1a7eeee750cf9ae4a9a2b3a37fd3<br>---<br>M addons/res_config_mysql.c<br>1 file changed, 4 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/16/13816/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/addons/res_config_mysql.c b/addons/res_config_mysql.c</span><br><span>index edd9385..976d932 100644</span><br><span>--- a/addons/res_config_mysql.c</span><br><span>+++ b/addons/res_config_mysql.c</span><br><span>@@ -641,7 +641,7 @@</span><br><span> release_table(table);</span><br><span> release_database(dbh);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- ast_debug(1, "MySQL RealTime: Updated %llu rows on table: %s\n", numrows, tablename);</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_debug(1, "MySQL RealTime: Updated %llu rows on table: %s\n", (unsigned long long)numrows, tablename);</span><br><span> </span><br><span> /* From http://dev.mysql.com/doc/mysql/en/mysql-affected-rows.html</span><br><span> * An integer greater than zero indicates the number of rows affected</span><br><span>@@ -738,7 +738,7 @@</span><br><span> numrows = mysql_affected_rows(&dbh->handle);</span><br><span> release_database(dbh);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- ast_debug(1, "MySQL RealTime: Updated %llu rows on table: %s\n", numrows, tablename);</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_debug(1, "MySQL RealTime: Updated %llu rows on table: %s\n", (unsigned long long)numrows, tablename);</span><br><span> </span><br><span> /* From http://dev.mysql.com/doc/mysql/en/mysql-affected-rows.html</span><br><span> * An integer greater than zero indicates the number of rows affected</span><br><span>@@ -862,7 +862,7 @@</span><br><span> numrows = mysql_affected_rows(&dbh->handle);</span><br><span> release_database(dbh);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- ast_debug(1, "MySQL RealTime: Deleted %llu rows on table: %s\n", numrows, table);</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_debug(1, "MySQL RealTime: Deleted %llu rows on table: %s\n", (unsigned long long)numrows, table);</span><br><span> </span><br><span> /* From http://dev.mysql.com/doc/mysql/en/mysql-affected-rows.html</span><br><span> * An integer greater than zero indicates the number of rows affected</span><br><span>@@ -916,7 +916,7 @@</span><br><span> </span><br><span> if ((result = mysql_store_result(&dbh->handle))) {</span><br><span> num_rows = mysql_num_rows(result);</span><br><span style="color: hsl(0, 100%, 40%);">- ast_debug(1, "MySQL RealTime: Found %llu rows.\n", num_rows);</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_debug(1, "MySQL RealTime: Found %llu rows.\n", (unsigned long long)num_rows);</span><br><span> </span><br><span> /* There might exist a better way to access the column names other than counting,</span><br><span> * but I believe that would require another loop that we don't need. */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13816">change 13816</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/c/asterisk/+/13816"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I2af4d419a37c1a7eeee750cf9ae4a9a2b3a37fd3 </div>
<div style="display:none"> Gerrit-Change-Number: 13816 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>