diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2023-08-22 14:52:22 +0200 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2023-08-22 14:53:11 +0200 |
commit | 7e5a62e9f360b72985d66ab471a52ab1cbb1ec0b (patch) | |
tree | 9ceaae683dbcd480324bafba6249ee87706e35b6 | |
parent | 9171e37afffeb419597d759b282b3c84b144cfcc (diff) |
bts: make bts_agch_dequeue static
The function bts_agch_dequeue() is not used outside of bts.c, so it can
be a static function.
Change-Id: If86293ebbd99d6550022aeb8721d40bca5fc04fc
Related: OS#5927
-rw-r--r-- | include/osmo-bts/bts.h | 1 | ||||
-rw-r--r-- | src/common/bts.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/include/osmo-bts/bts.h b/include/osmo-bts/bts.h index 677ff9c3..b2dd024e 100644 --- a/include/osmo-bts/bts.h +++ b/include/osmo-bts/bts.h @@ -408,7 +408,6 @@ void bts_shutdown_ext(struct gsm_bts *bts, const char *reason, bool exit_proc, b int bts_link_estab(struct gsm_bts *bts); int bts_agch_enqueue(struct gsm_bts *bts, struct msgb *msg); -struct msgb *bts_agch_dequeue(struct gsm_bts *bts); int bts_agch_max_queue_length(int T, int bcch_conf); enum ccch_msgt { diff --git a/src/common/bts.c b/src/common/bts.c index 40fe354a..0f2a0191 100644 --- a/src/common/bts.c +++ b/src/common/bts.c @@ -658,7 +658,7 @@ int bts_agch_enqueue(struct gsm_bts *bts, struct msgb *msg) return 0; } -struct msgb *bts_agch_dequeue(struct gsm_bts *bts) +static struct msgb *bts_agch_dequeue(struct gsm_bts *bts) { struct msgb *msg = msgb_dequeue(&bts->agch_queue.queue); if (!msg) |