From d19e58b13ce7716491d7fe22a91a52cf092b42a7 Mon Sep 17 00:00:00 2001 From: "Harald Welte (local)" Date: Sat, 15 Aug 2009 02:30:58 +0200 Subject: move talloc context creation out of on_dso / constructors the various constructors get called in a non-obvious, linker determined order, which makes certain objects disappear from the talloc report. This change moves the talloc context creation into a new talloc_ctx.c file --- openbsc/src/subchan_demux.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'openbsc/src/subchan_demux.c') diff --git a/openbsc/src/subchan_demux.c b/openbsc/src/subchan_demux.c index 368b9853c..63be533df 100644 --- a/openbsc/src/subchan_demux.c +++ b/openbsc/src/subchan_demux.c @@ -31,7 +31,7 @@ #include #include -static void *tall_tqe_ctx; +void *tall_tqe_ctx; static inline void append_bit(struct demux_subch *sch, u_int8_t bit) { @@ -320,9 +320,3 @@ int subchan_mux_init(struct subch_mux *mx) return 0; } - -static __attribute__((constructor)) void on_dso_load_ss_demux(void) -{ - tall_tqe_ctx = talloc_named_const(tall_bsc_ctx, 1, - "subch_txq_entry"); -} -- cgit v1.2.3