From 00480085483bb771c99b5d39fdd441e7b59afbbd Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 22 Mar 2019 17:18:36 +0100 Subject: talloc_ctx_init: Use public API osmo_signal_talloc_ctx_init There's already a public API to allocate libosmocore's signal ctx, so let's use it instead of accessing the global variable. This will allow to eventually Make the global variable in libosmocore static and private. Change-Id: I8dab0ef810adba17fdd242e3a127908dd09b2b42 --- openbsc/src/libcommon/talloc_ctx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsc') diff --git a/openbsc/src/libcommon/talloc_ctx.c b/openbsc/src/libcommon/talloc_ctx.c index 5e3d9aebe..7164851b1 100644 --- a/openbsc/src/libcommon/talloc_ctx.c +++ b/openbsc/src/libcommon/talloc_ctx.c @@ -19,6 +19,7 @@ #include #include +#include extern void *tall_bsc_ctx; extern void *tall_fle_ctx; @@ -29,7 +30,6 @@ extern void *tall_subscr_ctx; extern void *tall_sub_req_ctx; extern void *tall_call_ctx; extern void *tall_paging_ctx; -extern void *tall_sigh_ctx; extern void *tall_tqe_ctx; extern void *tall_trans_ctx; extern void *tall_map_ctx; @@ -47,10 +47,10 @@ void talloc_ctx_init(void *ctx_root) tall_sub_req_ctx = talloc_named_const(ctx_root, 0, "subscr_request"); tall_call_ctx = talloc_named_const(ctx_root, 0, "gsm_call"); tall_paging_ctx = talloc_named_const(ctx_root, 0, "paging_request"); - tall_sigh_ctx = talloc_named_const(ctx_root, 0, "signal_handler"); tall_tqe_ctx = talloc_named_const(ctx_root, 0, "subch_txq_entry"); tall_trans_ctx = talloc_named_const(ctx_root, 0, "transaction"); tall_map_ctx = talloc_named_const(ctx_root, 0, "trau_map_entry"); tall_upq_ctx = talloc_named_const(ctx_root, 0, "trau_upq_entry"); tall_ctr_ctx = talloc_named_const(ctx_root, 0, "counter"); + osmo_signal_talloc_ctx_init(ctx_root); } -- cgit v1.2.3