summaryrefslogtreecommitdiff
path: root/tests/lib/test_heavy_thread.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2022-02-24 01:43:48 -0500
committerGitHub <noreply@github.com>2022-02-24 01:43:48 -0500
commit7bf63db79b7848b73e1cef49f3496038644bea16 (patch)
tree2c95921d910689673348e60f9614de7d9d00c4e7 /tests/lib/test_heavy_thread.c
parentca6c97340b013e140c0cb31737858f7c672b7dfb (diff)
parentcc9f21da2218d95567eff1501482ce58e6600f54 (diff)
Merge pull request #10632 from donaldsharp/thread_return_null
*: Change thread->func to return void instead of int
Diffstat (limited to 'tests/lib/test_heavy_thread.c')
-rw-r--r--tests/lib/test_heavy_thread.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/lib/test_heavy_thread.c b/tests/lib/test_heavy_thread.c
index d516ed0de0..466f9a7d97 100644
--- a/tests/lib/test_heavy_thread.c
+++ b/tests/lib/test_heavy_thread.c
@@ -70,7 +70,7 @@ static void slow_func(struct vty *vty, const char *str, const int i)
printf("%s did %d, x = %g\n", str, i, x);
}
-static int clear_something(struct thread *thread)
+static void clear_something(struct thread *thread)
{
struct work_state *ws = THREAD_ARG(thread);
@@ -84,14 +84,13 @@ static int clear_something(struct thread *thread)
if (thread_should_yield(thread)) {
thread_add_timer_msec(master, clear_something, ws, 0,
NULL);
- return 0;
+ return;
}
}
/* All done! */
XFREE(MTYPE_TMP, ws->str);
XFREE(MTYPE_TMP, ws);
- return 0;
}
DEFUN (clear_foo,