aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/paging.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/paging.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/paging.c')
-rw-r--r--openbsc/src/paging.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/openbsc/src/paging.c b/openbsc/src/paging.c
index dd2215005..802024a5b 100644
--- a/openbsc/src/paging.c
+++ b/openbsc/src/paging.c
@@ -49,7 +49,7 @@
#define PAGING_TIMEOUT 1, 75000
#define MAX_PAGING_REQUEST 750
-static void *tall_paging_ctx;
+void *tall_paging_ctx;
static unsigned int calculate_group(struct gsm_bts *bts, struct gsm_subscriber *subscr)
{
@@ -309,8 +309,3 @@ void paging_update_buffer_space(struct gsm_bts *bts, u_int16_t free_slots)
{
bts->paging.available_slots = free_slots;
}
-
-static __attribute__((constructor)) void on_dso_load_paging(void)
-{
- tall_paging_ctx = talloc_named_const(NULL, 1, "paging_request");
-}