summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/nsecs/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-05 21:15:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-05 21:15:40 +0000
commit8ff5e59dd42f1beb40ec01f69037d036e2cfc061 (patch)
treec714de3123872434d8550c171bdfbf17c2c5af01 /testsuites/samples/nsecs/init.c
parent2007-04-05 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-8ff5e59dd42f1beb40ec01f69037d036e2cfc061.tar.bz2
2007-04-05 Joel Sherrill <joel@OARcorp.com>
* nsecs/init.c: Provide timespec manipulation routines in the SuperCore. Use them everywhere possible. Perhaps they should be part of the public API so this test and others can use them without peeking into the bowels.
Diffstat (limited to '')
-rw-r--r--testsuites/samples/nsecs/init.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/testsuites/samples/nsecs/init.c b/testsuites/samples/nsecs/init.c
index fe98433967..d95617f1a4 100644
--- a/testsuites/samples/nsecs/init.c
+++ b/testsuites/samples/nsecs/init.c
@@ -1,7 +1,8 @@
/*
* Nanoseconds accuracy timestamp test
- *
- * COPYRIGHT (c) 1989-2007.
+ */
+
+/* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -34,15 +35,15 @@ void subtract_em(
struct timespec *t
)
{
- extern void _POSIX_Timespec_subtract(
- const struct timespec *the_start,
+ extern void _Timespec_Subtract(
+ const struct timespec *start,
const struct timespec *end,
- struct timespec *result
+ struct timespec *result
);
t->tv_sec = 0;
t->tv_nsec = 0;
- _POSIX_Timespec_subtract( start, stop, t );
+ _Timespec_Subtract( start, stop, t );
}
volatile int i;