<p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/14591">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/14591/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/14591/1/src/osmo-bts-trx/trx_if.c@617">Patch Set #1, Line 617:</a> <code style="font-family:monospace,monospace">  fn =  osmo_load32be(buf + 1);</code></p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">You missed the important part: "instead of mixing them". [...]</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">In case of buf[0], I am accessing the first octet of the buffer. In case of (buf + 1) I am passing a pointer to osmo_load32be(), skipping one octet. There is no mix IMHO. I would agree with you if I were doing *(buf + 5) e.g. for RSSI.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/14591/1/src/osmo-bts-trx/trx_if.c@619">Patch Set #1, Line 619:</a> <code style="font-family:monospace,monospace"> toa256 = (int16_t) osmo_load16be(buf + 6);</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">toa256 = (int16_t) osmo_load16be(&buf[6]);</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same here, I am passing pointer to a buffer, not a value by pointer.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/14591">change 14591</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/+/14591"/><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: Iec0d86f9be7243578ddc1ab322fc313cb5ac5d0b </div>
<div style="display:none"> Gerrit-Change-Number: 14591 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </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-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 26 Jun 2019 11:16:54 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Comment-In-Reply-To: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>