aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mncc.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/mncc.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/mncc.c')
-rw-r--r--openbsc/src/mncc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/openbsc/src/mncc.c b/openbsc/src/mncc.c
index 8cd62f6ce..f62541c05 100644
--- a/openbsc/src/mncc.c
+++ b/openbsc/src/mncc.c
@@ -30,7 +30,7 @@
#include <openbsc/talloc.h>
#include <openbsc/gsm_data.h>
-static void *tall_call_ctx;
+void *tall_call_ctx;
static struct mncc_names {
char *name;
@@ -389,8 +389,3 @@ int mncc_recv(struct gsm_network *net, int msg_type, void *arg)
return rc;
}
-
-static __attribute__((constructor)) void on_dso_load_trau_mncc(void)
-{
- tall_call_ctx = talloc_named_const(tall_bsc_ctx, 1, "gsm_call");
-}