<p>osmith has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13050">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">hlr.c: move hlr_ctx to the top<br><br>Allow all functions to use hlr_ctx, so it can be used by the upcoming<br>read_cb_forward() function in [1]. That new function is placed next to<br>the existing read_cb() function, which is above the current hlr_ctx<br>declaration.<br><br>[1]: Change-Id: Ia4f345abc877baaf0a8f73b8988e6514d9589bf5<br><br>Related: OS#3793<br>Change-Id: I5edf0a233ff323a63e321a1ca47736b5b212d1bb<br>---<br>M src/hlr.c<br>1 file changed, 1 insertion(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/50/13050/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/hlr.c b/src/hlr.c</span><br><span>index c544310..f374ccc 100644</span><br><span>--- a/src/hlr.c</span><br><span>+++ b/src/hlr.c</span><br><span>@@ -47,6 +47,7 @@</span><br><span> #include "hlr_ussd.h"</span><br><span> </span><br><span> struct hlr *g_hlr;</span><br><span style="color: hsl(120, 100%, 40%);">+static void *hlr_ctx = NULL;</span><br><span> static int quit = 0;</span><br><span> </span><br><span> /* Trigger 'Insert Subscriber Data' messages to all connected GSUP clients.</span><br><span>@@ -608,8 +609,6 @@</span><br><span>    }</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-static void *hlr_ctx = NULL;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span> static void signal_hdlr(int signal)</span><br><span> {</span><br><span>   switch (signal) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13050">change 13050</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/13050"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I5edf0a233ff323a63e321a1ca47736b5b212d1bb </div>
<div style="display:none"> Gerrit-Change-Number: 13050 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>