diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-07-28 20:54:50 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-07-28 20:54:50 +0200 |
commit | 9e527ce662d347ef737d4ed283200d42a37879c5 (patch) | |
tree | adb4d3c87db55c7bedea4eb7304b35ab5ac4e006 /openbsc/src/subchan_demux.c | |
parent | 559d97db667227ca6961faef8321bb961cbe75e1 (diff) | |
parent | 15efcd2e276b4f93461eb1ea5436c093fc727117 (diff) |
Merge commit 'origin/master'
Diffstat (limited to 'openbsc/src/subchan_demux.c')
-rw-r--r-- | openbsc/src/subchan_demux.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/openbsc/src/subchan_demux.c b/openbsc/src/subchan_demux.c index ccd4fadc6..368b9853c 100644 --- a/openbsc/src/subchan_demux.c +++ b/openbsc/src/subchan_demux.c @@ -312,9 +312,6 @@ int subchan_mux_init(struct subch_mux *mx) { int i; - if (!tall_tqe_ctx) - tall_tqe_ctx = talloc_named_const(tall_bsc_ctx, 1, - "subch_txq_entry"); memset(mx, 0, sizeof(*mx)); for (i = 0; i < NR_SUBCH; i++) { struct mux_subch *sch = &mx->subch[i]; @@ -323,3 +320,9 @@ 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"); +} |