summaryrefslogtreecommitdiff
path: root/proto/rpki/rpki.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-06-01 12:33:20 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-12-07 13:49:27 +0100
commit025525266f6861437ca54aca2a86eb505a486baf (patch)
tree8a4f2035ef7edbcd77224ed76598ec0806f24512 /proto/rpki/rpki.c
parent28a7d3943ef915c405b3552ae06f639a86f4dc1e (diff)
Timers: Replace old timers with microsecond timers
The old timer interface is still kept, but implemented by new timers. The plan is to switch from the old inteface to the new interface, then clean it up.
Diffstat (limited to 'proto/rpki/rpki.c')
-rw-r--r--proto/rpki/rpki.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/proto/rpki/rpki.c b/proto/rpki/rpki.c
index 349d2f70..a331e45e 100644
--- a/proto/rpki/rpki.c
+++ b/proto/rpki/rpki.c
@@ -382,7 +382,7 @@ rpki_do_we_recv_prefix_pdu_in_last_seconds(struct rpki_cache *cache)
* |End of Data| PDU and has run by some &ERROR is occurred.
*/
static void
-rpki_refresh_hook(struct timer *tm)
+rpki_refresh_hook(timer *tm)
{
struct rpki_cache *cache = tm->data;
@@ -428,7 +428,7 @@ rpki_refresh_hook(struct timer *tm)
* ends by reaching of &ESTABLISHED state again.
*/
static void
-rpki_retry_hook(struct timer *tm)
+rpki_retry_hook(timer *tm)
{
struct rpki_cache *cache = tm->data;
@@ -473,7 +473,7 @@ rpki_retry_hook(struct timer *tm)
* of the protocol.
*/
static void
-rpki_expire_hook(struct timer *tm)
+rpki_expire_hook(timer *tm)
{
struct rpki_cache *cache = tm->data;
@@ -789,8 +789,8 @@ rpki_get_status(struct proto *P, byte *buf)
static void
rpki_show_proto_info_timer(const char *name, uint num, timer *t)
{
- if (t->expires)
- cli_msg(-1006, " %-17s %us (remains %us)", name, num, tm_remains(t));
+ if (tm_active(t))
+ cli_msg(-1006, " %-17s %us (remains %ds)", name, num, (int) tm_remains(t));
else
cli_msg(-1006, " %-17s ---", name);
}