Clean up.

This commit is contained in:
W. Eric Norum
2008-04-18 20:30:19 +00:00
parent fc85afd77c
commit 6f7156cab2

View File

@@ -35,6 +35,9 @@ void osdNTPInit(void)
{
}
/*
* Simulate vxWorks routines needed by OSI NTP general time provider.
*/
int
tickGet(void)
{
@@ -45,11 +48,14 @@ tickGet(void)
int sysClkRateGet(void)
{
rtems_interval t;
rtems_clock_get (RTEMS_CLOCK_GET_TICKS_PER_SECOND, &t);
return t;
extern rtems_interval rtemsTicksPerSecond;
return rtemsTicksPerSecond;
}
/*
* Use reentrant versions of time access
*/
int epicsTime_gmtime ( const time_t *pAnsiTime, struct tm *pTM )
{
struct tm * pRet = gmtime_r ( pAnsiTime, pTM );