diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2017-05-08 20:57:52 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2017-05-10 11:21:24 +0200 |
commit | 5121576b0c6c323ae5f92d8d987b8c0899d99db0 (patch) | |
tree | c0157908247ea2f068fa942575753be416e43402 /openbsc/src/gprs/gprs_sgsn.c | |
parent | 7b62d54b52457ecae649ead12e67369b3e09c235 (diff) |
src: use osmo_timer_setup()
Use new function available in libosmocore to set up timers. Compile
tested only.
Change-Id: Ibcfd915688e97d370a888888a83a7c95cbe16819
Diffstat (limited to 'openbsc/src/gprs/gprs_sgsn.c')
-rw-r--r-- | openbsc/src/gprs/gprs_sgsn.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openbsc/src/gprs/gprs_sgsn.c b/openbsc/src/gprs/gprs_sgsn.c index 5d9af7807..071dd97c8 100644 --- a/openbsc/src/gprs/gprs_sgsn.c +++ b/openbsc/src/gprs/gprs_sgsn.c @@ -889,9 +889,7 @@ static void sgsn_llme_check_cb(void *data_) void sgsn_inst_init() { - sgsn->llme_timer.cb = sgsn_llme_check_cb; - sgsn->llme_timer.data = NULL; - + osmo_timer_setup(&sgsn->llme_timer, sgsn_llme_check_cb, NULL); osmo_timer_schedule(&sgsn->llme_timer, GPRS_LLME_CHECK_TICK, 0); } |