<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><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I know that an array in C is basically a pointer to its first […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">'*' is fine with me.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Argument wise, to me any array would make more sense to be indicated by [], be it of uint8_t or complex structs. A pointer * would be more suitable for a pointer to a single element. At osmocom however we tend to only do * and never [], except for 'extern const struct value_string foo_names[];'</p><p style="white-space: pre-wrap; word-wrap: break-word;">I've had the same code review argument recently, I don't think it's worth arguing against foo[] if it is an array of any kind, but if you guys are so fixed on plain pointers, fine with me.</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><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">We usually put the 'default' statement below all 'case' statements. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">no reason nor preference on my side</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: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Sun, 06 Jan 2019 21:53:52 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>