<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/20000">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gb/common_vty: use void *<br><br>As long the filter doesn't look into the nsvc/bvc structs<br>there is no need to use the type.<br>Further it allows to use the same code for NS1 and NS2.<br><br>Change-Id: I9b9a70f382a94f1d41142060d5db569f9df865ac<br>---<br>M src/gb/common_vty.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/00/20000/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gb/common_vty.c b/src/gb/common_vty.c</span><br><span>index a47294b..eb665d5 100644</span><br><span>--- a/src/gb/common_vty.c</span><br><span>+++ b/src/gb/common_vty.c</span><br><span>@@ -40,8 +40,8 @@</span><br><span> int gprs_log_filter_fn(const struct log_context *ctx,</span><br><span>                      struct log_target *tar)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-    const struct gprs_nsvc *nsvc = ctx->ctx[LOG_CTX_GB_NSVC];</span><br><span style="color: hsl(0, 100%, 40%);">-    const struct gprs_bvc *bvc = ctx->ctx[LOG_CTX_GB_BVC];</span><br><span style="color: hsl(120, 100%, 40%);">+     const void *nsvc = ctx->ctx[LOG_CTX_GB_NSVC];</span><br><span style="color: hsl(120, 100%, 40%);">+      const void *bvc = ctx->ctx[LOG_CTX_GB_BVC];</span><br><span> </span><br><span>   /* Filter on the NS Virtual Connection */</span><br><span>    if ((tar->filter_map & (1 << LOG_FLT_GB_NSVC)) != 0</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/20000">change 20000</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/+/20000"/><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: I9b9a70f382a94f1d41142060d5db569f9df865ac </div>
<div style="display:none"> Gerrit-Change-Number: 20000 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>