From 12adbeaba35032bc81647e6ccbd6bfdbe4cdf248 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 5 Oct 2021 18:49:43 +0200 Subject: Move global var bsc_gsmnet into libbsc [2/4] This is used inside group of files forming libbsc (shared files used by several apps). Let's instantie only once inside a file from libbsc instead of doing so on each binary. This is one further step towards fixing interdependency mess of symbols and stubs. Change-Id: I9b287aa492ca6aae5fc56133e1510aff3146fe25 --- tests/bsc/bsc_test.c | 1 - tests/gsm0408/gsm0408_test.c | 3 --- tests/handover/handover_test.c | 2 -- 3 files changed, 6 deletions(-) (limited to 'tests') diff --git a/tests/bsc/bsc_test.c b/tests/bsc/bsc_test.c index dbb547e82..0cf0bc265 100644 --- a/tests/bsc/bsc_test.c +++ b/tests/bsc/bsc_test.c @@ -39,7 +39,6 @@ #include void *ctx = NULL; -struct gsm_network *bsc_gsmnet = NULL; enum test { TEST_SCAN_TO_BTS, diff --git a/tests/gsm0408/gsm0408_test.c b/tests/gsm0408/gsm0408_test.c index 4255ab26e..401729351 100644 --- a/tests/gsm0408/gsm0408_test.c +++ b/tests/gsm0408/gsm0408_test.c @@ -57,9 +57,6 @@ __FILE__, __LINE__, (int) res, # cmp, (int) wanted); \ } - -struct gsm_network *bsc_gsmnet = NULL; - static inline void gen(struct gsm_bts *bts, const char *s) { int r; diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c index a355d3b0e..bd65b2f75 100644 --- a/tests/handover/handover_test.c +++ b/tests/handover/handover_test.c @@ -58,8 +58,6 @@ void *ctx; -struct gsm_network *bsc_gsmnet; - /* override, requires '-Wl,--wrap=osmo_mgcpc_ep_ci_request'. * Catch modification of an MGCP connection. */ void __real_osmo_mgcpc_ep_ci_request(struct osmo_mgcpc_ep_ci *ci, -- cgit v1.2.3