summaryrefslogtreecommitdiff
path: root/pathd/path_ted.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-02-22 19:04:25 -0500
committerDonald Sharp <sharpd@nvidia.com>2022-02-23 19:56:04 -0500
commitcc9f21da2218d95567eff1501482ce58e6600f54 (patch)
treed579c9754161d874bad6eb09c67821b65fb559ca /pathd/path_ted.c
parenteaba619fc183f68a456b3918f449185b3b477426 (diff)
*: Change thread->func to return void instead of int
The int return value is never used. Modify the code base to just return a void instead. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pathd/path_ted.c')
-rw-r--r--pathd/path_ted.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/pathd/path_ted.c b/pathd/path_ted.c
index ff9bc82f39..3440b93399 100644
--- a/pathd/path_ted.c
+++ b/pathd/path_ted.c
@@ -39,8 +39,8 @@ static void path_ted_unregister_vty(void);
static uint32_t path_ted_start_importing_igp(const char *daemon_str);
static uint32_t path_ted_stop_importing_igp(void);
static enum zclient_send_status path_ted_link_state_sync(void);
-static int path_ted_timer_handler_sync(struct thread *thread);
-static int path_ted_timer_handler_refresh(struct thread *thread);
+static void path_ted_timer_handler_sync(struct thread *thread);
+static void path_ted_timer_handler_refresh(struct thread *thread);
static int path_ted_cli_debug_config_write(struct vty *vty);
static int path_ted_cli_debug_set_all(uint32_t flags, bool set);
@@ -602,14 +602,14 @@ enum zclient_send_status path_ted_link_state_sync(void)
*
* @return status
*/
-int path_ted_timer_handler_sync(struct thread *thread)
+void path_ted_timer_handler_sync(struct thread *thread)
{
/* data unpacking */
struct ted_state *data = THREAD_ARG(thread);
assert(data != NULL);
/* Retry the sync */
- return path_ted_link_state_sync();
+ path_ted_link_state_sync();
}
/**
@@ -639,10 +639,10 @@ int path_ted_segment_list_refresh(void)
*
* @return status
*/
-int path_ted_timer_handler_refresh(struct thread *thread)
+void path_ted_timer_handler_refresh(struct thread *thread)
{
if (!path_ted_is_initialized())
- return MPLS_LABEL_NONE;
+ return;
PATH_TED_DEBUG("%s: PATHD-TED: Refresh sid from current TED", __func__);
/* data unpacking */
@@ -651,7 +651,6 @@ int path_ted_timer_handler_refresh(struct thread *thread)
assert(data != NULL);
srte_policy_update_ted_sid();
- return 0;
}
/**