mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
!apps: drop CONFIG_SYSTEM_TIME64 conditionals
NuttX always uses a 64-bit system clock now (time_t/clock_t are
always 64-bit). Remove the obsolete CONFIG_SYSTEM_TIME64 #ifdef
branches and Kconfig dependency.
- examples/dronecan: drop SYSTEM_TIME64 dependency
- examples/netlink_route: always use PRIx64
- netutils/netinit: always use the 1-hour LONG_TIME_SEC
- netutils/ptpd: always pack the 48-bit seconds field and apply
the 64-bit overflow guard in timespec_delta_ns()
- testing/ostest/semtimed: always validate tv_sec >= 0
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
ed746548ca
commit
72837c8d26
5 changed files with 2 additions and 21 deletions
|
|
@ -79,11 +79,7 @@ static void ostest_gettime(struct timespec *tp)
|
|||
printf("ostest_gettime: ERROR: clock_gettime failed\n");
|
||||
ASSERT(false);
|
||||
}
|
||||
#ifdef CONFIG_SYSTEM_TIME64
|
||||
else if (tp->tv_sec < 0 || tp->tv_nsec < 0 ||
|
||||
#else
|
||||
else if (tp->tv_nsec < 0 ||
|
||||
#endif
|
||||
tp->tv_nsec >= 1000 * 1000 * 1000)
|
||||
{
|
||||
printf("ostest_gettime: ERROR: clock_gettime returned bogus time\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue