Harald Welte has submitted this change and it was merged.

Change subject: mobile/main.c: fix deprecated call to msgb_set_talloc_ctx()
......................................................................


mobile/main.c: fix deprecated call to msgb_set_talloc_ctx()

The usage of msgb_set_talloc_ctx() was deprecated many days ago,
so it's time to use the proper replacement.

Change-Id: I56440d8e2152c4bb2e5ad677f88c61742d2ad9ca
---
M src/host/layer23/src/mobile/main.c
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Max: Looks good to me, but someone else must approve
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/host/layer23/src/mobile/main.c 
b/src/host/layer23/src/mobile/main.c
index bc66557..997e2d5 100644
--- a/src/host/layer23/src/mobile/main.c
+++ b/src/host/layer23/src/mobile/main.c
@@ -220,7 +220,8 @@
        log_set_all_filter(stderr_target, 1);
 
        l23_ctx = talloc_named_const(NULL, 1, "layer2 context");
-       msgb_set_talloc_ctx(l23_ctx);
+       /* TODO: measure and choose a proper pool size */
+       msgb_talloc_ctx_init(l23_ctx, 0);
 
        handle_options(argc, argv);
 

-- 
To view, visit https://gerrit.osmocom.org/4639
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I56440d8e2152c4bb2e5ad677f88c61742d2ad9ca
Gerrit-PatchSet: 2
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <axilira...@gmail.com>
Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msur...@sysmocom.de>

Reply via email to