<p><a href="https://gerrit.osmocom.org/c/libosmocore/+/20333">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/libosmocore/+/20333/4/src/gsm/bsslap.c">File src/gsm/bsslap.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/libosmocore/+/20333/4/src/gsm/bsslap.c@73">Patch Set #4, Line 73:</a> <code style="font-family:monospace,monospace">err_ctx</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">not particularly happy that we have a macro making assumptions about variable names in its context,  […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">i'd never do that in a .h file... there's always exactly one 'err' and 'err_ctx' in every IE decoding scope in this .c file, that's why I allowed myself to not pass it explicitly.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/20333/4/src/gsm/bsslap.c@217">Patch Set #4, Line 217:</a> <code style="font-family:monospace,monospace">void *err_ctx</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I would have avoided the extra argument and allocated from one of our OTC_SELECT or te like talloc c […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I would have *liked* to always use OTC_SELECT, but that would make assumptions on the caller using osmo_select_main_ctx(), and maybe someone would like the error message to survive as long as the msgb that caused it?</p><p style="white-space: pre-wrap; word-wrap: break-word;">I would be very happy to strip this argument, but currently I don't see how we can?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/20333">change 20333</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/libosmocore/+/20333"/><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-Change-Id: I6409c4bcac402dc7626a3afce9081c59cd715fe8 </div>
<div style="display:none"> Gerrit-Change-Number: 20333 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 07 Oct 2020 12:46:40 +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: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>