Name uc_timers_XXX consistently

This commit is contained in:
Nils O. Selåsdal
2013-05-28 01:05:38 +02:00
parent ecc9218e7c
commit 1e34c11265
6 changed files with 36 additions and 36 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ void peer_timer_cb(struct UCTimers *timers, struct UCTimer *timer)
struct HBContext *ctx = timer->cookie_ptr;
time_t now;
uc_timer_add(timers, timer, PEER_HB_MISS , 0);
uc_timers_add(timers, timer, PEER_HB_MISS , 0);
now = time(NULL);
if (now - peer->last_ok > PEER_HB_MISS * PEER_HB_SEC) {
@@ -106,7 +106,7 @@ void peer_add_addr(struct HBContext *ctx, const struct sockaddr_in *addr)
sec = rand() % PEER_HB_SEC;
usec = rand() % 1000000;
uc_timer_add(iomux_get_timers(ctx->mux), &peer->timer, sec, usec);
uc_timers_add(iomux_get_timers(ctx->mux), &peer->timer, sec, usec);
}
void peer_add(struct HBContext *ctx, const char *host, uint16_t port)