summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx05
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psx05')
-rw-r--r--testsuites/psxtests/psx05/init.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c
index 7bc472b2ee..1cf47aa800 100644
--- a/testsuites/psxtests/psx05/init.c
+++ b/testsuites/psxtests/psx05/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2008.
+ * COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -19,6 +19,17 @@
void Print_mutexattr(
char *msg,
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
)
{
int status;
@@ -89,7 +100,7 @@ void calculate_abstimeout(
while ( times->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
times->tv_sec++;
- times->tv_nsec - TOD_NANOSECONDS_PER_SECOND;
+ times->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
}
}