<p>Patch set 2:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +2</span></p><p><a href="https://gerrit.osmocom.org/8055">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/8055/2//COMMIT_MSG">Commit Message:</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/8055/2//COMMIT_MSG@11">Patch Set #2, Line 11:</a> <code style="font-family:monospace,monospace">is started up. Also the timer number is not according to the spec.</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">which timer number is not what according to which spec?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/8055/2/src/libbsc/a_reset.c">File src/libbsc/a_reset.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/8055/2/src/libbsc/a_reset.c@33">Patch Set #2, Line 33:</a> <code style="font-family:monospace,monospace">#define RESET_RESEND_TIMER_NO 4                /* See also 3GPP TS 48.008 Chapter 3.1.4.1.3.1 */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">wow, looks like a double paste typo but the chapter nr is accurate :)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/8055/2/src/libbsc/a_reset.c@157">Patch Set #2, Line 157:</a> <code style="font-family:monospace,monospace">        reset_fsm = osmo_fsm_inst_alloc(&fsm, NULL, NULL, LOGL_DEBUG, name);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(osmo_fsm_inst_alloc() has a priv arg to which you could pass reset_ctx.</p><p style="white-space: pre-wrap; word-wrap: break-word;">On the other hand, a good talloc pattern is to allocate the reset_ctx as talloc child of the reset_fsm, so that the deallocating FSM also clears the priv struct at the same time.</p><p style="white-space: pre-wrap; word-wrap: break-word;">On the other other hand you say this never gets deallocated.</p><p style="white-space: pre-wrap; word-wrap: break-word;">none of these are important, just noting.)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/8055">change 8055</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/8055"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I72095d52304c520e383755eee6c889bce492cbd4 </div>
<div style="display:none"> Gerrit-Change-Number: 8055 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 14 May 2018 17:50:07 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>