aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-06-13 19:57:57 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2023-06-14 14:09:11 +0200
commit9e3bab9e9729dd3f0c6854f25db006b108a6a786 (patch)
tree9d0e58ea7cdb9627fe2bb0f1a03db9b040a95345 /tests
parent11c420a2fa3de702e011caa2ba197c94e8722b64 (diff)
Use new mgcp_client_conf_alloc() API to alloc mgcp_client_conf
Diffstat (limited to 'tests')
-rw-r--r--tests/msc_vlr/msc_vlr_tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/msc_vlr/msc_vlr_tests.c b/tests/msc_vlr/msc_vlr_tests.c
index 726475355..8009cf76c 100644
--- a/tests/msc_vlr/msc_vlr_tests.c
+++ b/tests/msc_vlr/msc_vlr_tests.c
@@ -1235,10 +1235,10 @@ struct gsm_network *test_net(void *ctx)
INIT_LLIST_HEAD(&net->iu.sri->ran_conns);
net->mgw.tdefs = g_mgw_tdefs;
- mgcp_client_conf_init(&net->mgw.conf);
net->mgw.tdefs = g_mgw_tdefs;
+ net->mgw.conf = mgcp_client_conf_alloc(net);
net->mgw.mgw_pool = mgcp_client_pool_alloc(net);
- client = mgcp_client_init(net, &net->mgw.conf);
+ client = mgcp_client_init(net, net->mgw.conf);
mgcp_client_pool_register_single(net->mgw.mgw_pool, client);
return net;
}