From 42b148051a82adff71153a2e67d1eaef460437ec Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Mon, 9 Oct 2023 21:42:11 -0700 Subject: [PATCH] =?utf8?q?client:=20Rename:=20set=5Fsend=5Falarm=20?= =?utf8?q?=E2=86=92=20set=5Fresend=5Falarm?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- client/tattlekey.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/tattlekey.c b/client/tattlekey.c index c5e500e..00ee326 100644 --- a/client/tattlekey.c +++ b/client/tattlekey.c @@ -55,7 +55,7 @@ static void time_to_send(uint _) { queue_try_add_ignoring_errors(&queue, &e); } -void set_send_alarm(int alarm, uint32_t now, uint32_t next_act_time) { +void set_resend_alarm(int alarm, uint32_t now, uint32_t next_act_time) { uint32_t sleep_duration = next_act_time - now; if (hardware_alarm_set_target(alarm, make_timeout_time_ms(sleep_duration * 1000))) @@ -72,7 +72,7 @@ void service_sleeps(int alarm, send_t *sleeping_sends, pheap_t *sleeps_heap) { if (act_time == -1) return; if (act_time > now) { - set_send_alarm(alarm, now, act_time); + set_resend_alarm(alarm, now, act_time); return; } pheap_node_id_t i = ph_remove_head(sleeps_heap, false); -- 2.44.1