aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_subscriber.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/gsm_subscriber.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/gsm_subscriber.c')
-rw-r--r--openbsc/src/gsm_subscriber.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/openbsc/src/gsm_subscriber.c b/openbsc/src/gsm_subscriber.c
index d91298ee..297b8c8f 100644
--- a/openbsc/src/gsm_subscriber.c
+++ b/openbsc/src/gsm_subscriber.c
@@ -36,8 +36,8 @@
#include <openbsc/db.h>
LLIST_HEAD(active_subscribers);
-static void *tall_subscr_ctx;
-static void *tall_sub_req_ctx;
+void *tall_subscr_ctx;
+void *tall_sub_req_ctx;
/*
* Struct for pending channel requests. This is managed in the
@@ -282,12 +282,3 @@ void subscr_put_channel(struct gsm_lchan *lchan)
if (lchan->subscr && !llist_empty(&lchan->subscr->requests))
subscr_send_paging_request(lchan->subscr);
}
-
-
-static __attribute__((constructor)) void on_dso_load_subscr(void)
-{
- tall_subscr_ctx = talloc_named_const(tall_bsc_ctx, 1, "subscriber");
-
- tall_sub_req_ctx = talloc_named_const(tall_bsc_ctx, 1,
- "subscr_request");
-}