<p style="white-space: pre-wrap; word-wrap: break-word;">Checking rc of send() - cool! Coverity was complaining about that for a long time. I don't like using goto without the real need for that, otherwise I would CR+2. Also, I would prefer strerror().</p><p>Patch set 1:<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-bts/+/15702">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/15702/1/src/osmo-bts-trx/trx_if.c">File src/osmo-bts-trx/trx_if.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/15702/1/src/osmo-bts-trx/trx_if.c@104">Patch Set #1, Line 104:</a> <code style="font-family:monospace,monospace">strerror_r</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This is a single thread application, so calling strerror() would be enough.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15702/1/src/osmo-bts-trx/trx_if.c@165">Patch Set #1, Line 165:</a> <code style="font-family:monospace,monospace">strerror_r</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15702/1/src/osmo-bts-trx/trx_if.c@992">Patch Set #1, Line 992:</a> <code style="font-family:monospace,monospace">strerror_r</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15702/1/src/osmo-bts-trx/trx_if.c@1111">Patch Set #1, Line 1111:</a> <code style="font-family:monospace,monospace">goto</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Any reason to use goto here? This is the only failure branch right now, and I don't think there will be more calls to send() in this function.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15702/1/src/osmo-bts-trx/trx_if.c@1118">Patch Set #1, Line 1118:</a> <code style="font-family:monospace,monospace">strerror_r</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/15702">change 15702</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-bts/+/15702"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ic3e41d82b43459495d45873d612a3bd349ac174a </div>
<div style="display:none"> Gerrit-Change-Number: 15702 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 08 Oct 2019 13:49:24 +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>