]> git.proxmox.com Git - mirror_frr.git/blobdiff - pceplib/pcep_timers.c
pceplib: Fix clang-16 not happy with build
[mirror_frr.git] / pceplib / pcep_timers.c
index 4c06d2b3f772fe7b8607eec6d23309048df83569..61fda163637e9721444025fab98fb81998eef0e0 100644 (file)
@@ -75,7 +75,7 @@ int timer_list_node_timer_ptr_compare(void *list_entry, void *new_entry)
 }
 
 /* internal util method */
-static pcep_timers_context *create_timers_context_()
+static pcep_timers_context *create_timers_context_(void)
 {
        if (timers_context_ == NULL) {
                timers_context_ = pceplib_malloc(PCEPLIB_INFRA,
@@ -197,7 +197,7 @@ void free_all_timers(pcep_timers_context *timers_context)
 }
 
 
-bool teardown_timers()
+bool teardown_timers(void)
 {
        if (timers_context_ == NULL) {
                pcep_log(
@@ -252,7 +252,7 @@ bool teardown_timers()
 }
 
 
-int get_next_timer_id()
+int get_next_timer_id(void)
 {
        if (timer_id_ == INT_MAX) {
                timer_id_ = 0;
@@ -413,7 +413,7 @@ bool reset_timer(int timer_id)
                /* Keeping this log for now, since in older versions of FRR the
                 * timer cancellation was blocking. This allows us to see how
                 * long the it takes.*/
-               pcep_log(LOG_DEBUG, "%s: Reseting timer [%d] with callback",
+               pcep_log(LOG_DEBUG, "%s: Resetting timer [%d] with callback",
                         __func__, timer_to_reset->timer_id);
                timers_context_->timer_cancel_func(
                        &timer_to_reset->external_timer);