aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-09-03 17:37:36 +0200
committerlaforge <laforge@osmocom.org>2020-09-07 07:50:58 +0000
commit3b688835b05afa3339a4c0d2e5e2ead9e34595b2 (patch)
treeb723c5a70fb2c92b3035c639800079499424c40e
parent83fb686baaa77b4081b73fd026479292a10d71f0 (diff)
gb/common_vty: use void *
As long the filter doesn't look into the nsvc/bvc structs there is no need to use the type. Further it allows to use the same code for NS1 and NS2. Change-Id: I9b9a70f382a94f1d41142060d5db569f9df865ac
-rw-r--r--src/gb/common_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gb/common_vty.c b/src/gb/common_vty.c
index a47294b5..eb665d52 100644
--- a/src/gb/common_vty.c
+++ b/src/gb/common_vty.c
@@ -40,8 +40,8 @@
int gprs_log_filter_fn(const struct log_context *ctx,
struct log_target *tar)
{
- const struct gprs_nsvc *nsvc = ctx->ctx[LOG_CTX_GB_NSVC];
- const struct gprs_bvc *bvc = ctx->ctx[LOG_CTX_GB_BVC];
+ const void *nsvc = ctx->ctx[LOG_CTX_GB_NSVC];
+ const void *bvc = ctx->ctx[LOG_CTX_GB_BVC];
/* Filter on the NS Virtual Connection */
if ((tar->filter_map & (1 << LOG_FLT_GB_NSVC)) != 0