<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/13506">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  Pau Espin Pedrol: Looks good to me, but someone else must approve
  Harald Welte: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Cosmetic: sccp_scoc: fix local reference comments<br><br>Remove all comments, that claim conn_id is the local reference. This<br>is only a hack, and should not be something to rely on. A properly<br>separated local reference will be introduced shortly.<br><br>Related: OS#3871<br>Change-Id: I900124037da76caaaf5ecee323eb82e1c6d2e368<br>---<br>M src/sccp_internal.h<br>M src/sccp_scoc.c<br>2 files changed, 4 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/sccp_internal.h b/src/sccp_internal.h</span><br><span>index 000f0f7..ad8a6fd 100644</span><br><span>--- a/src/sccp_internal.h</span><br><span>+++ b/src/sccp_internal.h</span><br><span>@@ -47,7 +47,7 @@</span><br><span>        struct llist_head users;</span><br><span>     /* routing context to be used in all outbound messages */</span><br><span>    uint32_t route_ctx;</span><br><span style="color: hsl(0, 100%, 40%);">-     /* next local reference to allocate */</span><br><span style="color: hsl(120, 100%, 40%);">+        /* next connection ID to allocate */</span><br><span>         uint32_t next_id;</span><br><span>    struct osmo_ss7_instance *ss7;</span><br><span>       void *priv;</span><br><span>diff --git a/src/sccp_scoc.c b/src/sccp_scoc.c</span><br><span>index e58251f..726426c 100644</span><br><span>--- a/src/sccp_scoc.c</span><br><span>+++ b/src/sccp_scoc.c</span><br><span>@@ -458,7 +458,7 @@</span><br><span> </span><br><span> #define INIT_TIMER(x, fn, priv)               do { (x)->cb = fn; (x)->data = priv; } while (0)</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-/* allocate + init a SCCP Connection with given ID (local reference) */</span><br><span style="color: hsl(120, 100%, 40%);">+/* allocate + init a SCCP Connection with given ID */</span><br><span> static struct sccp_connection *conn_create_id(struct osmo_sccp_instance *inst,</span><br><span>                                         uint32_t conn_id)</span><br><span> {</span><br><span>@@ -480,7 +480,7 @@</span><br><span>   /* this might change at runtime, as it is not a constant :/ */</span><br><span>       sccp_scoc_fsm.log_subsys = DLSCCP;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-  /* we simply use the local reference as FSM instance name */</span><br><span style="color: hsl(120, 100%, 40%);">+  /* we simply use the connection ID as FSM instance name */</span><br><span>   snprintf(name, sizeof(name), "%u", conn->conn_id);</span><br><span>      conn->fi = osmo_fsm_inst_alloc(&sccp_scoc_fsm, conn, conn,</span><br><span>                                    LOGL_DEBUG, name);</span><br><span>@@ -493,7 +493,7 @@</span><br><span>     return conn;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-/* Search for next free connection ID (local reference) and allocate conn */</span><br><span style="color: hsl(120, 100%, 40%);">+/* Search for next free connection ID and allocate conn */</span><br><span> static struct sccp_connection *conn_create(struct osmo_sccp_instance *inst)</span><br><span> {</span><br><span>    uint32_t conn_id;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13506">change 13506</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/13506"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-sccp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I900124037da76caaaf5ecee323eb82e1c6d2e368 </div>
<div style="display:none"> Gerrit-Change-Number: 13506 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>