aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-nitb/bsc_hack.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2017-05-08 20:57:52 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2017-05-10 11:21:24 +0200
commit5121576b0c6c323ae5f92d8d987b8c0899d99db0 (patch)
treec0157908247ea2f068fa942575753be416e43402 /openbsc/src/osmo-nitb/bsc_hack.c
parent7b62d54b52457ecae649ead12e67369b3e09c235 (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/osmo-nitb/bsc_hack.c')
-rw-r--r--openbsc/src/osmo-nitb/bsc_hack.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/openbsc/src/osmo-nitb/bsc_hack.c b/openbsc/src/osmo-nitb/bsc_hack.c
index d8029cd56..17b23b2b9 100644
--- a/openbsc/src/osmo-nitb/bsc_hack.c
+++ b/openbsc/src/osmo-nitb/bsc_hack.c
@@ -369,13 +369,12 @@ int main(int argc, char **argv)
printf("DB: Database prepared.\n");
/* setup the timer */
- db_sync_timer.cb = db_sync_timer_cb;
- db_sync_timer.data = NULL;
+ osmo_timer_setup(&db_sync_timer, db_sync_timer_cb, NULL);
if (use_db_counter)
osmo_timer_schedule(&db_sync_timer, DB_SYNC_INTERVAL);
- bsc_gsmnet->subscr_expire_timer.cb = subscr_expire_cb;
- bsc_gsmnet->subscr_expire_timer.data = NULL;
+ osmo_timer_setup(&bsc_gsmnet->subscr_expire_timer, subscr_expire_cb,
+ NULL);
osmo_timer_schedule(&bsc_gsmnet->subscr_expire_timer, EXPIRE_INTERVAL);
signal(SIGINT, &signal_handler);