diff options
author | Harald Welte (local) <laflocal@hanuman.gnumonks.org> | 2009-08-15 02:30:58 +0200 |
---|---|---|
committer | Harald Welte (local) <laflocal@hanuman.gnumonks.org> | 2009-08-15 02:30:58 +0200 |
commit | d19e58b13ce7716491d7fe22a91a52cf092b42a7 (patch) | |
tree | e16a267c7fa496ddc102844479be76ce71fc0ab9 /openbsc/src/gsm_04_11.c | |
parent | efc92311e22e67a210429a15c29b396b0561317f (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_04_11.c')
-rw-r--r-- | openbsc/src/gsm_04_11.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c index 2994d7207..85ad0ecd2 100644 --- a/openbsc/src/gsm_04_11.c +++ b/openbsc/src/gsm_04_11.c @@ -53,7 +53,7 @@ #define UM_SAPI_SMS 3 /* See GSM 04.05/04.06 */ -static void *tall_gsms_ctx; +void *tall_gsms_ctx; static u_int32_t new_callref = 0x40000001; struct value_string { @@ -1076,7 +1076,5 @@ void _gsm411_sms_trans_free(struct gsm_trans *trans) static __attribute__((constructor)) void on_dso_load_sms(void) { - tall_gsms_ctx = talloc_named_const(tall_bsc_ctx, 1, "sms"); - register_signal_handler(SS_SUBSCR, subscr_sig_cb, NULL); } |