<p style="white-space: pre-wrap; word-wrap: break-word;">Fine with me, just a few cosmetic issues.</p><p>Patch set 2:<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/12468">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/12468/2/src/gsm/gsm48.c">File src/gsm/gsm48.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/12468/2/src/gsm/gsm48.c@441">Patch Set #2, Line 441:</a> <code style="font-family:monospace,monospace">mi[]</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I know that an array in C is basically a pointer to its first<br>element. So, both 'uint8_t mi[]' and 'uint8_t *mi' are equal.</p><p style="white-space: pre-wrap; word-wrap: break-word;">But in most cases we are using 'type *foo', while 'type arr[]'<br>is more suitable for complex arrays, e.g. arrays of structs.</p><p style="white-space: pre-wrap; word-wrap: break-word;">In this case we are dealing with a buffer, so let's use 'uint8_t *mi'.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12468/2/src/gsm/gsm48.c@451">Patch Set #2, Line 451:</a> <code style="font-family:monospace,monospace">default</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">We usually put the 'default' statement below all 'case' statements.<br>Why this 'switch' is doing vice-versa? Any advantages of that?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/12468">change 12468</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/12468"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I7798c3ef983c2e333b2b9cbffef6f366f370bd81 </div>
<div style="display:none"> Gerrit-Change-Number: 12468 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Sat, 05 Jan 2019 11:30:44 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>