<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7946">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_ooh323: Avoid typecasting an int to unsigned short.<br><br>clang 5.0 warned about this.<br><br>ASTERISK-27577<br><br>Change-Id: I898fe4255023138a9e8b579fe4482fcf582f2b78<br>---<br>M addons/chan_ooh323.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/46/7946/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c<br>index 3afcecd..5d5f5fe 100644<br>--- a/addons/chan_ooh323.c<br>+++ b/addons/chan_ooh323.c<br>@@ -3215,7 +3215,7 @@<br> }<br> <br> if (peer) {<br>- sprintf(ip_port, "%s:%hu", peer->ip, peer->port);<br>+ sprintf(ip_port, "%s:%d", peer->ip, peer->port);<br> ast_cli(a->fd, "%-15.15s%s\n", "Name: ", peer->name);<br> ast_cli(a->fd, "%s:%s,%s\n", "FastStart/H.245 Tunneling", peer->faststart?"yes":"no",<br> peer->h245tunneling?"yes":"no");<br>@@ -3306,7 +3306,7 @@<br> peer = peerl.peers;<br> while (peer) {<br> ast_mutex_lock(&peer->lock);<br>- snprintf(ip_port, sizeof(ip_port), "%s:%hu", peer->ip, peer->port);<br>+ snprintf(ip_port, sizeof(ip_port), "%s:%d", peer->ip, peer->port);<br> ast_cli(a->fd, FORMAT, peer->name,<br> peer->accountcode,<br> ip_port,<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7946">change 7946</a>. To unsubscribe, 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/7946"/><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: I898fe4255023138a9e8b579fe4482fcf582f2b78 </div>
<div style="display:none"> Gerrit-Change-Number: 7946 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>