[PATCH] osmocom-bb[master]: mobile/main.c: fix deprecated call to msgb_set_talloc_ctx()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Thu Nov 2 10:54:35 UTC 2017


Review at  https://gerrit.osmocom.org/4639

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(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/39/4639/1

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: newchange
Gerrit-Change-Id: I56440d8e2152c4bb2e5ad677f88c61742d2ad9ca
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list