summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/helpers/c/main.c2
-rw-r--r--tests/lib/test_heavy_thread.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/helpers/c/main.c b/tests/helpers/c/main.c
index 09f20e44b5..4ae72fa29a 100644
--- a/tests/helpers/c/main.c
+++ b/tests/helpers/c/main.c
@@ -35,7 +35,7 @@ DEFUN (daemon_exit,
static int timer_count;
static void test_timer(struct event *thread)
{
- int *count = THREAD_ARG(thread);
+ int *count = EVENT_ARG(thread);
printf("run %d of timer\n", (*count)++);
event_add_timer(master, test_timer, count, 5, NULL);
diff --git a/tests/lib/test_heavy_thread.c b/tests/lib/test_heavy_thread.c
index bd5ecf37c3..f931894ff8 100644
--- a/tests/lib/test_heavy_thread.c
+++ b/tests/lib/test_heavy_thread.c
@@ -58,7 +58,7 @@ static void slow_func(struct vty *vty, const char *str, const int i)
static void clear_something(struct event *thread)
{
- struct work_state *ws = THREAD_ARG(thread);
+ struct work_state *ws = EVENT_ARG(thread);
/* this could be like iterating through 150k of route_table
* or worse, iterating through a list of peers, to bgp_stop them with