<p>Kevin Harwell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15723">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_rtp_asterisk: Statically declare rtp_drop_packets_data struct<br><br>This patch makes the drop_packets_data object static. Also, while<br>this should mean object attributes are default initialized this<br>patch explicitly initializes num_to_drop to zero (disabled) for<br>good measure.<br><br>Change-Id: If4f9b21fa0c47d41a35b6b05941d978efb4da87b<br>---<br>M res/res_rtp_asterisk.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/23/15723/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c</span><br><span>index 17041fe..6c578b5 100644</span><br><span>--- a/res/res_rtp_asterisk.c</span><br><span>+++ b/res/res_rtp_asterisk.c</span><br><span>@@ -7541,7 +7541,7 @@</span><br><span> </span><br><span> #ifdef AST_DEVMODE</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-struct rtp_drop_packets_data {</span><br><span style="color: hsl(120, 100%, 40%);">+static struct rtp_drop_packets_data {</span><br><span>   /* Whether or not to randomize the number of packets to drop. */</span><br><span>     unsigned int use_random_num;</span><br><span>         /* Whether or not to randomize the time interval between packets drops. */</span><br><span>@@ -7560,7 +7560,7 @@</span><br><span>   struct ast_sockaddr addr;</span><br><span>    /* The optional port from which to drop packets from. */</span><br><span>     unsigned int port;</span><br><span style="color: hsl(0, 100%, 40%);">-} drop_packets_data;</span><br><span style="color: hsl(120, 100%, 40%);">+} drop_packets_data = { .num_to_drop = 0 };</span><br><span> </span><br><span> static void drop_packets_data_update(struct timeval tv)</span><br><span> {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15723">change 15723</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/+/15723"/><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-Change-Id: If4f9b21fa0c47d41a35b6b05941d978efb4da87b </div>
<div style="display:none"> Gerrit-Change-Number: 15723 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>