]> git.scottworley.com Git - tattlekey/commitdiff
client: Rename: set_send_alarm → set_resend_alarm
authorScott Worley <scottworley@scottworley.com>
Tue, 10 Oct 2023 04:42:11 +0000 (21:42 -0700)
committerScott Worley <scottworley@scottworley.com>
Wed, 11 Oct 2023 01:49:19 +0000 (18:49 -0700)
client/tattlekey.c

index c5e500ed4518e2d5fc377c7226d56f24ff911b93..00ee3264a31e6d908419fb43710b22514c863512 100644 (file)
@@ -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);