Skip to content

Commit 79a0d3c

Browse files
Use 0 instead of NULL.
1 parent 8daf154 commit 79a0d3c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/event_loop_test.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static int s_test_event_loop_xthread_scheduled_tasks_execute(struct aws_allocato
6868
.was_in_thread = false,
6969
.status = -1,
7070
.loop = event_loop,
71-
.thread_id = NULL};
71+
.thread_id = 0};
7272

7373
struct aws_task task;
7474
aws_task_init(&task, s_test_task, &task_args, "xthread_scheduled_tasks_execute");
@@ -126,14 +126,14 @@ static int s_test_event_loop_canceled_tasks_run_in_el_thread(struct aws_allocato
126126
.was_in_thread = false,
127127
.status = -1,
128128
.loop = event_loop,
129-
.thread_id = NULL};
129+
.thread_id = 0};
130130
struct task_args task2_args = {.condition_variable = AWS_CONDITION_VARIABLE_INIT,
131131
.mutex = AWS_MUTEX_INIT,
132132
.invoked = false,
133133
.was_in_thread = false,
134134
.status = -1,
135135
.loop = event_loop,
136-
.thread_id = NULL};
136+
.thread_id = 0};
137137

138138
struct aws_task task1;
139139
aws_task_init(&task1, s_test_task, &task1_args, "canceled_tasks_run_in_el_thread1");
@@ -987,7 +987,7 @@ static int s_event_loop_test_stop_then_restart(struct aws_allocator *allocator,
987987
.was_in_thread = false,
988988
.status = -1,
989989
.loop = event_loop,
990-
.thread_id = NULL};
990+
.thread_id = 0};
991991

992992
struct aws_task task;
993993
aws_task_init(&task, s_test_task, &task_args, "stop_then_restart");
@@ -1111,7 +1111,7 @@ static int test_event_loop_group_setup_and_shutdown_async(struct aws_allocator *
11111111
.status = -1,
11121112
.loop = event_loop,
11131113
.el_group = &event_loop_group,
1114-
.thread_id = NULL};
1114+
.thread_id = 0};
11151115

11161116
struct aws_task task;
11171117
aws_task_init(&task, s_async_shutdown_task, &task_args, "async elg shutdown invoked from an event loop thread");

0 commit comments

Comments
 (0)