[rtems commit] psxtests/psx05: Fix timeout calculation
Sebastian Huber
sebh at rtems.org
Mon Oct 9 05:24:19 UTC 2017
Module: rtems
Branch: master
Commit: 6489bcbfeeb2d52100c738da4a48951a2ceec88a
Changeset: http://git.rtems.org/rtems/commit/?id=6489bcbfeeb2d52100c738da4a48951a2ceec88a
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Oct 9 07:23:32 2017 +0200
psxtests/psx05: Fix timeout calculation
Update #3111.
---
testsuites/psxtests/psx05/init.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c
index 4da2673..70e8d4a 100644
--- a/testsuites/psxtests/psx05/init.c
+++ b/testsuites/psxtests/psx05/init.c
@@ -29,12 +29,6 @@ void Print_mutexattr(
pthread_mutexattr_t *attr
);
-void calculate_abstimeout(
- struct timespec *times,
- uint32_t seconds,
- uint32_t nanoseconds
-);
-
void Print_mutexattr(
char *msg,
pthread_mutexattr_t *attr
@@ -92,10 +86,10 @@ void Print_mutexattr(
}
}
-void calculate_abstimeout(
+static void calculate_abstimeout(
struct timespec *times,
- uint32_t seconds,
- uint32_t nanoseconds
+ int seconds,
+ long nanoseconds
)
{
struct timeval tv1;
More information about the vc
mailing list