From ea01ca764fcf0912ac2ccd1a8818640518911a51 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 16 Jun 2010 13:05:35 +0800 Subject: chan_alloc: Make the lchan_find(bts,subscr) private/internal.. --- openbsc/include/openbsc/chan_alloc.h | 3 --- openbsc/src/chan_alloc.c | 2 +- 2 files changed, 1 insertion(+), 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; -- cgit v1.2.3