diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2017-06-07 18:38:21 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2017-06-07 18:40:35 +0200 |
commit | 57b5f824911c0ba6b2a8e1fecaa4dc98ec4b21f6 (patch) | |
tree | 296092717e94f1de6d6b7e45f9ccbc13cf645c7f /src/stream.c | |
parent | 31b1dbd894d6c4b1f1abf38b2816cca920e894f9 (diff) |
src: use osmo_timer_setup()
Use new function available in libosmocore to set up timers. Compile
tested only.
Change-Id: Id3dd32102c7362f3b280d2c058c2decebccb357a
Diffstat (limited to 'src/stream.c')
-rw-r--r-- | src/stream.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stream.c b/src/stream.c index b96293e..a80d842 100644 --- a/src/stream.c +++ b/src/stream.c @@ -281,8 +281,7 @@ struct osmo_stream_cli *osmo_stream_cli_create(void *ctx) cli->ofd.cb = osmo_stream_cli_fd_cb; cli->ofd.data = cli; cli->state = STREAM_CLI_STATE_CONNECTING; - cli->timer.cb = cli_timer_cb; - cli->timer.data = cli; + osmo_timer_setup(&cli->timer, cli_timer_cb, cli); cli->reconnect_timeout = 5; /* default is 5 seconds. */ INIT_LLIST_HEAD(&cli->tx_queue); |