aboutsummaryrefslogtreecommitdiffstats
path: root/src/chan_alloc.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-05-23 05:22:08 +0000
committerHarald Welte <laforge@gnumonks.org>2009-05-23 05:22:08 +0000
commitff117a8d1138d9629df543ed00e698ee3a0bdb73 (patch)
tree6e27b6ebaa4229d8cea5adb8ab8025f96cd3229c /src/chan_alloc.c
parentd6cab81175ec6afe5708ade7557d35330c0cb973 (diff)
* rename the timer functions to avoid name collisions with libmisdn.
* the return value of bsc_update_timers() is required for applications to find out if a timer was fired (Andreas Eversberg)
Diffstat (limited to 'src/chan_alloc.c')
-rw-r--r--src/chan_alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chan_alloc.c b/src/chan_alloc.c
index 7edde6e1..fa07273f 100644
--- a/src/chan_alloc.c
+++ b/src/chan_alloc.c
@@ -178,7 +178,7 @@ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type)
/* Configure the time and start it so it will be closed */
lchan->release_timer.cb = auto_release_channel;
lchan->release_timer.data = lchan;
- schedule_timer(&lchan->release_timer, LCHAN_RELEASE_TIMEOUT);
+ bsc_schedule_timer(&lchan->release_timer, LCHAN_RELEASE_TIMEOUT);
}
return lchan;
@@ -199,7 +199,7 @@ void lchan_free(struct gsm_lchan *lchan)
}
/* stop the timer */
- del_timer(&lchan->release_timer);
+ bsc_del_timer(&lchan->release_timer);
/* FIXME: ts_free() the timeslot, if we're the last logical
* channel using it */
@@ -233,7 +233,7 @@ static void auto_release_channel(void *_lchan)
struct gsm_lchan *lchan = _lchan;
if (!lchan_auto_release(lchan))
- schedule_timer(&lchan->release_timer, LCHAN_RELEASE_TIMEOUT);
+ bsc_schedule_timer(&lchan->release_timer, LCHAN_RELEASE_TIMEOUT);
}
struct gsm_lchan* lchan_find(struct gsm_bts *bts, struct gsm_subscriber *subscr) {