aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gb
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-01-17 20:12:37 +0100
committerlynxis lazus <lynxis@fe80.eu>2021-01-19 15:06:35 +0000
commitaf5bfebcf366ebb86157f845b997ef561f13b17d (patch)
treed6d0d781daf9ce1b35bda027f2b468cade663f1c /tests/gb
parent7450f77f5786a0d096f37aa4b90268c143ffd4a8 (diff)
test: gprs_ns2: replace free_bind() with clear_pdus()
free_bind() should free up all driver specific state but NOT the bind itself. As the only thing left is clearing the pdus rename the function to it. Change-Id: Iac506734c93aca8be045ac13788d07d1bdc78eb3
Diffstat (limited to 'tests/gb')
-rw-r--r--tests/gb/gprs_ns2_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/gb/gprs_ns2_test.c b/tests/gb/gprs_ns2_test.c
index 7c28dca6..4c47b6ab 100644
--- a/tests/gb/gprs_ns2_test.c
+++ b/tests/gb/gprs_ns2_test.c
@@ -44,15 +44,15 @@ static int ns_prim_cb(struct osmo_prim_hdr *oph, void *ctx)
return 0;
}
-void free_bind(struct gprs_ns2_vc_bind *bind)
+static void clear_pdus(struct gprs_ns2_vc_bind *bind)
{
- OSMO_ASSERT(bind);
- talloc_free(bind);
+ struct osmo_wqueue *queue = bind->priv;
+ osmo_wqueue_clear(queue);
}
struct gprs_ns2_vc_driver vc_driver_dummy = {
.name = "GB UDP dummy",
- .free_bind = free_bind,
+ .free_bind = clear_pdus,
};
static int vc_sendmsg(struct gprs_ns2_vc *nsvc, struct msgb *msg)