From cc6240aeb2e895a8df8c4bdca7fcae082b4f00bb Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 13 Feb 2018 21:21:42 +0100 Subject: libcommon: eliminate talloc_ctx.c Interestingly enough, talloc_ctx_init() actually had not a single caller. While dropping it, see to it that the few contexts that are actually used in osmo-bsc.git are indeed initialized in all the main scopes. Also initialize two void* ctxts as NULL explicitly, to allocate under the NULL context in case some main scope forgets to branch it off another root context. (That's bsc, fle and paging, all others actually come in from other libraries.) Change-Id: I344a3d07e146999e154824837ed95db2b9879356 --- src/ipaccess/ipaccess-proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ipaccess') diff --git a/src/ipaccess/ipaccess-proxy.c b/src/ipaccess/ipaccess-proxy.c index 5cf6d6d93..d44cdf289 100644 --- a/src/ipaccess/ipaccess-proxy.c +++ b/src/ipaccess/ipaccess-proxy.c @@ -121,7 +121,7 @@ enum ipp_fd_type { }; /* some of the code against we link from OpenBSC needs this */ -void *tall_bsc_ctx; +void *tall_bsc_ctx = NULL; static char *listen_ipaddr; static char *bsc_ipaddr; -- cgit v1.2.3