]> 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 d0a2349d058785ee8269fa1f57e475b1f9b63f8c..61fda163637e9721444025fab98fb81998eef0e0 100644 (file)
  *  Implementation of public API timer functions.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <limits.h>
 #include <pthread.h>
 #include <stddef.h>
@@ -71,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,
@@ -193,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(
@@ -248,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;
@@ -409,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);