diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-03-22 17:18:36 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-03-22 17:18:38 +0100 |
commit | 00480085483bb771c99b5d39fdd441e7b59afbbd (patch) | |
tree | 28a1c6c61e990177cf1404c3dd010536b9c1fe3a /openbsc/src | |
parent | 4aab79d51f9096476991af23775d656e0981b89d (diff) |
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
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/libcommon/talloc_ctx.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <osmocom/core/talloc.h> #include <osmocom/core/msgb.h> +#include <osmocom/core/signal.h> 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); } |