diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-10-05 19:10:56 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-10-07 14:08:29 +0200 |
commit | eb36819b4d093da0c117f89caf05aef9751eb518 (patch) | |
tree | 81530533365a997fba8509ac8a2411681e68d7ad /src/osmo-bsc/pcu_sock.c | |
parent | 40c7410f9eb6961d5288c4bbf9072832b2b09ea1 (diff) |
Get rid of lots of stubs [4/4]
These are not needed anymore since we re-introduced libbsc, specially to
avoid all this churn.
Some specific methods are explicitly required to be overwritten by
tests, so we specificially mark those with __attribute__((weak)) in
order to be able to overwrite them.
This is the last step towards fixing interdependency mess of symbols and
stubs, and requires previous patches in order to have tests apssing
fine.
Change-Id: Ic7401b8a6eb903882e30fda1cf091ac99a254ef0
Diffstat (limited to 'src/osmo-bsc/pcu_sock.c')
-rw-r--r-- | src/osmo-bsc/pcu_sock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osmo-bsc/pcu_sock.c b/src/osmo-bsc/pcu_sock.c index 329bab0f8..6f7ee7715 100644 --- a/src/osmo-bsc/pcu_sock.c +++ b/src/osmo-bsc/pcu_sock.c @@ -263,7 +263,8 @@ static int pcu_tx_info_ind(struct gsm_bts *bts) return pcu_sock_send(bts, msg); } -void pcu_info_update(struct gsm_bts *bts) +/* Allow test to overwrite it */ +__attribute__((weak)) void pcu_info_update(struct gsm_bts *bts) { if (pcu_connected(bts)) pcu_tx_info_ind(bts); |