diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-10-05 18:49:43 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-10-07 14:08:15 +0200 |
commit | 12adbeaba35032bc81647e6ccbd6bfdbe4cdf248 (patch) | |
tree | a35be42878180f72b30ba6038cc0d5727f5b8d33 /tests | |
parent | 7974008436a910f008eb42611014ce9c385a16ae (diff) |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bsc/bsc_test.c | 1 | ||||
-rw-r--r-- | tests/gsm0408/gsm0408_test.c | 3 | ||||
-rw-r--r-- | tests/handover/handover_test.c | 2 |
3 files changed, 0 insertions, 6 deletions
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 <search.h> 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, |