summaryrefslogtreecommitdiff
path: root/tests/helpers/c/main.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/helpers/c/main.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/helpers/c/main.c')
-rw-r--r--tests/helpers/c/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/helpers/c/main.c b/tests/helpers/c/main.c
index 64ecab9132..ca6b18ecda 100644
--- a/tests/helpers/c/main.c
+++ b/tests/helpers/c/main.c
@@ -47,13 +47,12 @@ DEFUN (daemon_exit,
}
static int timer_count;
-static int test_timer(struct thread *thread)
+static void test_timer(struct thread *thread)
{
int *count = THREAD_ARG(thread);
printf("run %d of timer\n", (*count)++);
thread_add_timer(master, test_timer, count, 5, NULL);
- return 0;
}
static void test_timer_init(void)