aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-16 13:05:35 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-16 15:42:22 +0800
commitea01ca764fcf0912ac2ccd1a8818640518911a51 (patch)
tree91c0fdc4705f39ff9748f6e9d9f279563c1dbb3c
parent01288435919b0f5f201dbf41cbff3745cc18f3db (diff)
chan_alloc: Make the lchan_find(bts,subscr) private/internal..
-rw-r--r--openbsc/include/openbsc/chan_alloc.h3
-rw-r--r--openbsc/src/chan_alloc.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/openbsc/include/openbsc/chan_alloc.h b/openbsc/include/openbsc/chan_alloc.h
index d4f5858b7..fff0ea3f6 100644
--- a/openbsc/include/openbsc/chan_alloc.h
+++ b/openbsc/include/openbsc/chan_alloc.h
@@ -34,9 +34,6 @@ struct gsm_bts_trx_ts *ts_alloc(struct gsm_bts *bts,
/* Regular physical channel (TS) */
void ts_free(struct gsm_bts_trx_ts *ts);
-/* Find an allocated channel */
-struct gsm_lchan *lchan_find(struct gsm_bts *bts, struct gsm_subscriber *subscr);
-
/* Find an allocated channel for a specified subscriber */
struct gsm_lchan *lchan_for_subscr(struct gsm_subscriber *subscr);
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c
index 9df449f83..480949698 100644
--- a/openbsc/src/chan_alloc.c
+++ b/openbsc/src/chan_alloc.c
@@ -378,7 +378,7 @@ static void auto_release_channel(void *_lchan)
bsc_schedule_timer(&lchan->conn.release_timer, LCHAN_RELEASE_TIMEOUT);
}
-struct gsm_lchan* lchan_find(struct gsm_bts *bts, struct gsm_subscriber *subscr) {
+static struct gsm_lchan* lchan_find(struct gsm_bts *bts, struct gsm_subscriber *subscr) {
struct gsm_bts_trx *trx;
int ts_no, lchan_no;