<p>Patch set 3:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +1</span></p><p><a href="https://gerrit.osmocom.org/c/osmo-sip-connector/+/15065">View Change</a></p><p>5 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15065/3/src/mncc.c">File src/mncc.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15065/3/src/mncc.c@192">Patch Set #3, Line 192:</a> <code style="font-family:monospace,monospace"> char ip_addr[INET_ADDRSTRLEN];</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Please move this line to start of the function together with other variables, there's no specific need/reason to have it placed here.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15065/3/src/mncc.c@193">Patch Set #3, Line 193:</a> <code style="font-family:monospace,monospace"> inet_ntop(AF_INET, &net, ip_addr, INET_ADDRSTRLEN);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">As a tip, usually you want to use sizeof(ip_addr) here instead of INET_ADDRSTRLEN (this way if size of ip_addr changes later this lines doesn't need to be changed).</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15065/3/src/mncc.c@422">Patch Set #3, Line 422:</a> <code style="font-family:monospace,monospace"> char ip_addr[INET_ADDRSTRLEN];</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same comment.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15065/3/src/sdp.c">File src/sdp.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15065/3/src/sdp.c@211">Patch Set #3, Line 211:</a> <code style="font-family:monospace,monospace"> inet_ntop(AF_INET, &net, ip_addr, INET_ADDRSTRLEN);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">cosmetic: Usually leave an empty line between variable definition block and logic block.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15065/3/src/sip.c">File src/sip.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15065/3/src/sip.c@162">Patch Set #3, Line 162:</a> <code style="font-family:monospace,monospace"> char ip_addr[INET_ADDRSTRLEN];</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same comments.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sip-connector/+/15065">change 15065</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/c/osmo-sip-connector/+/15065"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: osmo-sip-connector </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: If6a96ede7d5e73884c32fbfdb03052e2bda50a77 </div>
<div style="display:none"> Gerrit-Change-Number: 15065 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: keith <keith@rhizomatica.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 06 Aug 2019 14:18:06 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>