aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/subchan_demux.c
diff options
context:
space:
mode:
authorHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-15 02:30:58 +0200
committerHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-15 02:30:58 +0200
commitd19e58b13ce7716491d7fe22a91a52cf092b42a7 (patch)
treee16a267c7fa496ddc102844479be76ce71fc0ab9 /openbsc/src/subchan_demux.c
parentefc92311e22e67a210429a15c29b396b0561317f (diff)
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
Diffstat (limited to 'openbsc/src/subchan_demux.c')
-rw-r--r--openbsc/src/subchan_demux.c8
1 files changed, 1 insertions, 7 deletions
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 <openbsc/talloc.h>
#include <openbsc/gsm_data.h>
-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");
-}