<p>Richard Mudgett has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15237">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_session.c: Fix compiler warnings.<br><br>AST_VECTOR_SIZE() returns a size_t.  This is not always equivalent to an<br>unsigned long on all machines.<br><br>Change-Id: I0a4189a104e6e3a2e2273de06620eaef19df9338<br>---<br>M res/res_pjsip_session.c<br>1 file changed, 6 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/37/15237/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c</span><br><span>index d15d7cb..ac10da6 100644</span><br><span>--- a/res/res_pjsip_session.c</span><br><span>+++ b/res/res_pjsip_session.c</span><br><span>@@ -5521,13 +5521,15 @@</span><br><span>     }</span><br><span>    if (AST_VECTOR_SIZE(&left->sessions) != AST_VECTOR_SIZE(&right->sessions)) {</span><br><span>           ast_assert(!assert_on_failure);</span><br><span style="color: hsl(0, 100%, 40%);">-         SCOPE_EXIT_RTN_VALUE(0, "session vector sizes different: left %lu != right %lu\n", AST_VECTOR_SIZE(&left->sessions),</span><br><span style="color: hsl(0, 100%, 40%);">-                   AST_VECTOR_SIZE(&right->sessions));</span><br><span style="color: hsl(120, 100%, 40%);">+            SCOPE_EXIT_RTN_VALUE(0, "session vector sizes different: left %lu != right %lu\n",</span><br><span style="color: hsl(120, 100%, 40%);">+                  (unsigned long) AST_VECTOR_SIZE(&left->sessions),</span><br><span style="color: hsl(120, 100%, 40%);">+                      (unsigned long) AST_VECTOR_SIZE(&right->sessions));</span><br><span>   }</span><br><span>    if (AST_VECTOR_SIZE(&left->read_callbacks) != AST_VECTOR_SIZE(&right->read_callbacks)) {</span><br><span>               ast_assert(!assert_on_failure);</span><br><span style="color: hsl(0, 100%, 40%);">-         SCOPE_EXIT_RTN_VALUE(0, "read_callback vector sizes different: left %lu != right %lu\n", AST_VECTOR_SIZE(&left->read_callbacks),</span><br><span style="color: hsl(0, 100%, 40%);">-                       AST_VECTOR_SIZE(&right->read_callbacks));</span><br><span style="color: hsl(120, 100%, 40%);">+              SCOPE_EXIT_RTN_VALUE(0, "read_callback vector sizes different: left %lu != right %lu\n",</span><br><span style="color: hsl(120, 100%, 40%);">+                    (unsigned long) AST_VECTOR_SIZE(&left->read_callbacks),</span><br><span style="color: hsl(120, 100%, 40%);">+                        (unsigned long) AST_VECTOR_SIZE(&right->read_callbacks));</span><br><span>     }</span><br><span> </span><br><span>        for (i = 0; i < AST_VECTOR_SIZE(&left->sessions) ; i++) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15237">change 15237</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/+/15237"/><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: I0a4189a104e6e3a2e2273de06620eaef19df9338 </div>
<div style="display:none"> Gerrit-Change-Number: 15237 </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-MessageType: newchange </div>