aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2019-03-15 14:58:34 +0100
committerdexter <pmaier@sysmocom.de>2019-03-20 14:48:00 +0000
commiteac4d23421b38f6538b70023b9899cce50f802e6 (patch)
treea87b99a192dc6748d7667d01845147104ea9899a
parenta4332be9e9f11b52ed832544016b8558741d23b4 (diff)
oc2gbts_mgr: use msgb_talloc_ctx_init() instead of msgb_set_talloc_ctx()
The function msgb_set_talloc_ctx() is deprecated. Lets use msgb_talloc_ctx_init() as suggested. Change-Id: I61f80a7b11e9117e8b71c49b7d81d2f959f3150d
-rw-r--r--src/osmo-bts-oc2g/misc/oc2gbts_mgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-oc2g/misc/oc2gbts_mgr.c b/src/osmo-bts-oc2g/misc/oc2gbts_mgr.c
index f8768e4a..46831f6f 100644
--- a/src/osmo-bts-oc2g/misc/oc2gbts_mgr.c
+++ b/src/osmo-bts-oc2g/misc/oc2gbts_mgr.c
@@ -274,7 +274,7 @@ int main(int argc, char **argv)
tall_mgr_ctx = talloc_named_const(NULL, 1, "bts manager");
tall_msgb_ctx = talloc_named_const(tall_mgr_ctx, 1, "msgb");
- msgb_set_talloc_ctx(tall_msgb_ctx);
+ msgb_talloc_ctx_init(tall_msgb_ctx, 0);
mgr_log_init();