From feff5b2d0b30e8f542b8401f3e8f9a504eb79e97 Mon Sep 17 00:00:00 2001 From: Alex Campbell Date: Fri, 12 Feb 2021 09:40:23 -0500 Subject: [PATCH] Fix #779, Change local vars to not conflict with global vars. --- src/tests/bin-sem-test/bin-sem-test.c | 2 +- src/tests/bin-sem-timeout-test/bin-sem-timeout-test.c | 2 +- src/tests/queue-test/queue-test.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/bin-sem-test/bin-sem-test.c b/src/tests/bin-sem-test/bin-sem-test.c index 4f6b6557c..584cea5c5 100644 --- a/src/tests/bin-sem-test/bin-sem-test.c +++ b/src/tests/bin-sem-test/bin-sem-test.c @@ -68,7 +68,7 @@ int counter = 0; * * On RTEMS even a call to BinSemGetInfo has very ill effects. */ -void TimerFunction(osal_id_t timer_id) +void TimerFunction(osal_id_t local_timer_id) { int32 status; diff --git a/src/tests/bin-sem-timeout-test/bin-sem-timeout-test.c b/src/tests/bin-sem-timeout-test/bin-sem-timeout-test.c index 54af1b7ef..0339f8054 100644 --- a/src/tests/bin-sem-timeout-test/bin-sem-timeout-test.c +++ b/src/tests/bin-sem-timeout-test/bin-sem-timeout-test.c @@ -64,7 +64,7 @@ int counter = 0; * * On RTEMS even a call to BinSemGetInfo has very ill effects. */ -void TimerFunction(osal_id_t timer_id) +void TimerFunction(osal_id_t local_timer_id) { int32 status; diff --git a/src/tests/queue-test/queue-test.c b/src/tests/queue-test/queue-test.c index a79caa265..d46ad5474 100644 --- a/src/tests/queue-test/queue-test.c +++ b/src/tests/queue-test/queue-test.c @@ -58,7 +58,7 @@ uint32 timer_start = 10000; uint32 timer_interval = 100000; /* 1000 = 1000 hz, 10000 == 100 hz */ uint32 timer_accuracy; -void TimerFunction(osal_id_t timer_id) +void TimerFunction(osal_id_t local_timer_id) { timer_counter++; }