clock_systimespec(): Fixes for compilation errors in certain configurations. From Macs N.

This commit is contained in:
Gregory Nutt 2015-01-30 08:19:40 -06:00
parent 478e363200
commit e69003cbf7

View File

@ -44,6 +44,7 @@
#include <nuttx/arch.h>
#include <nuttx/clock.h>
#include <nuttx/rtc.h>
#include "clock/clock.h"
@ -85,7 +86,7 @@ int clock_systimespec(FAR struct timespec *ts)
{
/* Get the hi-resolution time from the RTC */
return up_rtc_gettime(tp);
return up_rtc_gettime(ts);
}
else
#endif