From d19e58b13ce7716491d7fe22a91a52cf092b42a7 Mon Sep 17 00:00:00 2001 From: "Harald Welte (local)" Date: Sat, 15 Aug 2009 02:30:58 +0200 Subject: 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 --- openbsc/src/paging.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'openbsc/src/paging.c') 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"); -} -- cgit v1.2.3