diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-04-13 05:12:34 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-04-13 05:12:34 +0000 |
commit | 587da8b8e2e99ff91d5c69d307147acdb2fd8759 (patch) | |
tree | 5386e6845c468100bae14a2a5cd31a9c97aed4a2 /testsuites | |
parent | Fix typo. (diff) | |
download | rtems-587da8b8e2e99ff91d5c69d307147acdb2fd8759.tar.bz2 |
2007-04-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* nsecs/init.c: Remove private decl of _Timespec_Subtract use the
version from rtems/score/timespec.h.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/samples/ChangeLog | 5 | ||||
-rw-r--r-- | testsuites/samples/nsecs/init.c | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/testsuites/samples/ChangeLog b/testsuites/samples/ChangeLog index a390f4123b..c062e1bb3d 100644 --- a/testsuites/samples/ChangeLog +++ b/testsuites/samples/ChangeLog @@ -1,3 +1,8 @@ +2007-04-13 Ralf Corsépius <ralf.corsepius@rtems.org> + + * nsecs/init.c: Remove private decl of _Timespec_Subtract use the + version from rtems/score/timespec.h. + 2007-04-05 Joel Sherrill <joel@OARcorp.com> * nsecs/init.c: Provide timespec manipulation routines in the diff --git a/testsuites/samples/nsecs/init.c b/testsuites/samples/nsecs/init.c index d95617f1a4..f4f74203a3 100644 --- a/testsuites/samples/nsecs/init.c +++ b/testsuites/samples/nsecs/init.c @@ -20,6 +20,7 @@ #include <string.h> #include <stdlib.h> #include <sys/time.h> +#include <rtems/score/timespec.h> /* _Timespec_Substract */ char *my_ctime( time_t t ) { @@ -35,12 +36,6 @@ void subtract_em( struct timespec *t ) { - extern void _Timespec_Subtract( - const struct timespec *start, - const struct timespec *end, - struct timespec *result - ); - t->tv_sec = 0; t->tv_nsec = 0; _Timespec_Subtract( start, stop, t ); |