From 577e3d672f4806cdbd0fa6a225b216d3ea1db268 Mon Sep 17 00:00:00 2001 From: Magnus Johansson Date: Fri, 13 Oct 2023 11:40:42 +0200 Subject: [PATCH 1/3] Remove variable for unused parameter. --- test/linux/eoe_test/eoe_test.c | 4 ++-- test/linux/simple_test/simple_test.c | 4 ++-- test/win32/simple_test/simple_test.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/linux/eoe_test/eoe_test.c b/test/linux/eoe_test/eoe_test.c index 98f8997c..be98ed50 100644 --- a/test/linux/eoe_test/eoe_test.c +++ b/test/linux/eoe_test/eoe_test.c @@ -404,8 +404,8 @@ int main(int argc, char *argv[]) if (argc > 1) { /* create thread to handle slave error handling in OP */ -// pthread_create( &thread1, NULL, (void *) &ecatcheck, (void*) &ctime); - osal_thread_create(&thread1, 128000, &ecatcheck, (void*) &ctime); +// pthread_create( &thread1, NULL, (void *) &ecatcheck, NULL); + osal_thread_create(&thread1, 128000, &ecatcheck, NULL); /* start cyclic part */ teststarter(argv[1]); diff --git a/test/linux/simple_test/simple_test.c b/test/linux/simple_test/simple_test.c index d4721464..721535b0 100644 --- a/test/linux/simple_test/simple_test.c +++ b/test/linux/simple_test/simple_test.c @@ -235,8 +235,8 @@ int main(int argc, char *argv[]) if (argc > 1) { /* create thread to handle slave error handling in OP */ -// pthread_create( &thread1, NULL, (void *) &ecatcheck, (void*) &ctime); - osal_thread_create(&thread1, 128000, &ecatcheck, (void*) &ctime); +// pthread_create( &thread1, NULL, (void *) &ecatcheck, NULL); + osal_thread_create(&thread1, 128000, &ecatcheck, NULL); /* start cyclic part */ simpletest(argv[1]); } diff --git a/test/win32/simple_test/simple_test.c b/test/win32/simple_test/simple_test.c index d38fbeba..5cb1c191 100644 --- a/test/win32/simple_test/simple_test.c +++ b/test/win32/simple_test/simple_test.c @@ -350,7 +350,7 @@ int main(int argc, char *argv[]) if (argc > 1) { /* create thread to handle slave error handling in OP */ - osal_thread_create(&thread1, 128000, &ecatcheck, (void*) &ctime); + osal_thread_create(&thread1, 128000, &ecatcheck, NULL); strcpy(ifbuf, argv[1]); /* start cyclic part */ simpletest(ifbuf); From ee60275676ff940d85abd005d9902dfe6a7e483e Mon Sep 17 00:00:00 2001 From: rtmagj <147804786+rtmagj@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:31:01 +0200 Subject: [PATCH 2/3] Update eoe_test.c --- test/linux/eoe_test/eoe_test.c | 1 - 1 file changed, 1 deletion(-) diff --git a/test/linux/eoe_test/eoe_test.c b/test/linux/eoe_test/eoe_test.c index be98ed50..58c80487 100644 --- a/test/linux/eoe_test/eoe_test.c +++ b/test/linux/eoe_test/eoe_test.c @@ -404,7 +404,6 @@ int main(int argc, char *argv[]) if (argc > 1) { /* create thread to handle slave error handling in OP */ -// pthread_create( &thread1, NULL, (void *) &ecatcheck, NULL); osal_thread_create(&thread1, 128000, &ecatcheck, NULL); /* start cyclic part */ From 9b362aff76f88bcb7917c544e7f76297baf10559 Mon Sep 17 00:00:00 2001 From: rtmagj <147804786+rtmagj@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:31:27 +0200 Subject: [PATCH 3/3] Update simple_test.c --- test/linux/simple_test/simple_test.c | 1 - 1 file changed, 1 deletion(-) diff --git a/test/linux/simple_test/simple_test.c b/test/linux/simple_test/simple_test.c index 721535b0..8b9f70d1 100644 --- a/test/linux/simple_test/simple_test.c +++ b/test/linux/simple_test/simple_test.c @@ -235,7 +235,6 @@ int main(int argc, char *argv[]) if (argc > 1) { /* create thread to handle slave error handling in OP */ -// pthread_create( &thread1, NULL, (void *) &ecatcheck, NULL); osal_thread_create(&thread1, 128000, &ecatcheck, NULL); /* start cyclic part */ simpletest(argv[1]);