diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-09-16 01:56:37 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-14 01:23:28 +0200 |
commit | 21142f789812553b56f493d79184f5a31ab7b1cd (patch) | |
tree | 9de38f96dff4c80008c04460db5a00053c1a5412 /src | |
parent | b058778df1c1ef3476aefd574c7278d11d385ade (diff) |
msgb ctx: use new msgb_talloc_ctx_init() in various main()s
Change-Id: I31d62d5e1f0b272985fdef5013270d385c4b988a
Diffstat (limited to 'src')
-rw-r--r-- | src/common/main.c | 4 | ||||
-rw-r--r-- | src/osmo-bts-litecell15/misc/lc15bts_mgr.c | 4 | ||||
-rw-r--r-- | src/osmo-bts-sysmo/misc/sysmobts_mgr.c | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/src/common/main.c b/src/common/main.c index 99febe03..60839df0 100644 --- a/src/common/main.c +++ b/src/common/main.c @@ -219,14 +219,12 @@ int bts_main(int argc, char **argv) struct gsm_bts_role_bts *btsb; struct gsm_bts_trx *trx; struct e1inp_line *line; - void *tall_msgb_ctx; int rc, i; printf("((*))\n |\n / \\ OsmoBTS\n"); tall_bts_ctx = talloc_named_const(NULL, 1, "OsmoBTS context"); - tall_msgb_ctx = talloc_pool(tall_bts_ctx, 100*1024); - msgb_set_talloc_ctx(tall_msgb_ctx); + msgb_talloc_ctx_init(tall_bts_ctx, 100*1024); bts_log_init(NULL); diff --git a/src/osmo-bts-litecell15/misc/lc15bts_mgr.c b/src/osmo-bts-litecell15/misc/lc15bts_mgr.c index c97525c8..193e1085 100644 --- a/src/osmo-bts-litecell15/misc/lc15bts_mgr.c +++ b/src/osmo-bts-litecell15/misc/lc15bts_mgr.c @@ -222,13 +222,11 @@ static int mgr_log_init(void) int main(int argc, char **argv) { - void *tall_msgb_ctx; int rc; 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_mgr_ctx); mgr_log_init(); diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr.c index ccb84d8a..f126db2d 100644 --- a/src/osmo-bts-sysmo/misc/sysmobts_mgr.c +++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr.c @@ -245,13 +245,11 @@ static int mgr_log_init(void) int main(int argc, char **argv) { - void *tall_msgb_ctx; int rc; 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_mgr_ctx, 0); mgr_log_init(); if (classify_bts() != 0) |