* Implementation of public API timer functions.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <limits.h>
#include <pthread.h>
#include <stddef.h>
}
/* 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,
}
-bool teardown_timers()
+bool teardown_timers(void)
{
if (timers_context_ == NULL) {
pcep_log(
}
-int get_next_timer_id()
+int get_next_timer_id(void)
{
if (timer_id_ == INT_MAX) {
timer_id_ = 0;
/* 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);