summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-29 05:00:52 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-29 05:00:52 +0000
commit71c2deaf27e207f5d9ed786c6b1fd82d1499bf9f (patch)
tree9cb64a1b3dafdc5f2b35d53c1ffcf725fe423427
parent2009-10-29 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-71c2deaf27e207f5d9ed786c6b1fd82d1499bf9f.tar.bz2
Use long for nsecs.
-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 ) {