aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pcu_main.cpp2
-rw-r--r--tests/alloc/AllocTest.cpp2
-rw-r--r--tests/edge/EdgeTest.cpp2
-rw-r--r--tests/emu/pcu_emu.cpp2
-rw-r--r--tests/ms/MsTest.cpp2
-rw-r--r--tests/tbf/TbfTest.cpp2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp
index 0a0362b..338096b 100644
--- a/src/pcu_main.cpp
+++ b/src/pcu_main.cpp
@@ -217,7 +217,7 @@ int main(int argc, char *argv[])
*/
bts->dl_arq_type = EGPRS_ARQ1;
- msgb_set_talloc_ctx(tall_pcu_ctx);
+ msgb_talloc_ctx_init(tall_pcu_ctx, 0);
osmo_init_logging(&gprs_log_info);
osmo_stats_init(tall_pcu_ctx);
diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp
index 308c802..e26c432 100644
--- a/tests/alloc/AllocTest.cpp
+++ b/tests/alloc/AllocTest.cpp
@@ -848,7 +848,7 @@ int main(int argc, char **argv)
if (!tall_pcu_ctx)
abort();
- msgb_set_talloc_ctx(tall_pcu_ctx);
+ msgb_talloc_ctx_init(tall_pcu_ctx, 0);
osmo_init_logging(&gprs_log_info);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);
diff --git a/tests/edge/EdgeTest.cpp b/tests/edge/EdgeTest.cpp
index 16a39e9..73aed37 100644
--- a/tests/edge/EdgeTest.cpp
+++ b/tests/edge/EdgeTest.cpp
@@ -1424,7 +1424,7 @@ int main(int argc, char **argv)
if (!tall_pcu_ctx)
abort();
- msgb_set_talloc_ctx(tall_pcu_ctx);
+ msgb_talloc_ctx_init(tall_pcu_ctx, 0);
osmo_init_logging(&debug_log_info);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);
diff --git a/tests/emu/pcu_emu.cpp b/tests/emu/pcu_emu.cpp
index 3725c8d..957ddf6 100644
--- a/tests/emu/pcu_emu.cpp
+++ b/tests/emu/pcu_emu.cpp
@@ -110,7 +110,7 @@ int main(int argc, char **argv)
if (!tall_pcu_ctx)
abort();
- msgb_set_talloc_ctx(tall_pcu_ctx);
+ msgb_talloc_ctx_init(tall_pcu_ctx, 0);
osmo_init_logging(&gprs_log_info);
vty_init(&pcu_vty_info);
pcu_vty_init(&gprs_log_info);
diff --git a/tests/ms/MsTest.cpp b/tests/ms/MsTest.cpp
index 0930354..d66f578 100644
--- a/tests/ms/MsTest.cpp
+++ b/tests/ms/MsTest.cpp
@@ -538,7 +538,7 @@ int main(int argc, char **argv)
if (!tall_pcu_ctx)
abort();
- msgb_set_talloc_ctx(tall_pcu_ctx);
+ msgb_talloc_ctx_init(tall_pcu_ctx, 0);
osmo_init_logging(&debug_log_info);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp
index 7d786b4..00aa4a8 100644
--- a/tests/tbf/TbfTest.cpp
+++ b/tests/tbf/TbfTest.cpp
@@ -3361,7 +3361,7 @@ int main(int argc, char **argv)
if (!tall_pcu_ctx)
abort();
- msgb_set_talloc_ctx(tall_pcu_ctx);
+ msgb_talloc_ctx_init(tall_pcu_ctx, 0);
osmo_init_logging(&debug_log_info);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);