summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psx11/task.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/testsuites/psxtests/psx11/task.c b/testsuites/psxtests/psx11/task.c
index b8863701bf..ac35cc6c76 100644
--- a/testsuites/psxtests/psx11/task.c
+++ b/testsuites/psxtests/psx11/task.c
@@ -26,15 +26,9 @@ void diff_timespec(
struct timespec *start,
struct timespec *stop,
struct timespec *result
-);
-
-void diff_timespec(
- struct timespec *start,
- struct timespec *stop,
- struct timespec *result
)
{
- int nsecs_per_sec = 1000000000;
+ const long nsecs_per_sec = 1000000000;
result->tv_sec = stop->tv_sec - start->tv_sec;
if ( stop->tv_nsec < start->tv_nsec ) {