summaryrefslogtreecommitdiffstats
path: root/tests/helpers/c/main.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-05-20 20:19:08 +0200
committerDonald Sharp <sharpd@nvidia.com>2023-03-24 13:32:17 +0100
commit907a2395f423e3b97335d554557c2cef7195db84 (patch)
tree18ea691bc5589fa570c739a9f221429633778ea9 /tests/helpers/c/main.c
parent*: Rename `struct thread` to `struct event` (diff)
downloadfrr-907a2395f423e3b97335d554557c2cef7195db84.tar.xz
frr-907a2395f423e3b97335d554557c2cef7195db84.zip
*: Convert thread_add_XXX functions to event_add_XXX
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/helpers/c/main.c')
-rw-r--r--tests/helpers/c/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/helpers/c/main.c b/tests/helpers/c/main.c
index ae089398e..937a44520 100644
--- a/tests/helpers/c/main.c
+++ b/tests/helpers/c/main.c
@@ -38,12 +38,12 @@ static void test_timer(struct event *thread)
int *count = THREAD_ARG(thread);
printf("run %d of timer\n", (*count)++);
- thread_add_timer(master, test_timer, count, 5, NULL);
+ event_add_timer(master, test_timer, count, 5, NULL);
}
static void test_timer_init(void)
{
- thread_add_timer(master, test_timer, &timer_count, 10, NULL);
+ event_add_timer(master, test_timer, &timer_count, 10, NULL);
}
static void test_vty_init(void)