mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 14:18:20 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user