From 1ec63e170167fe424ff2b486d378974fbb706a0a Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 29 Dec 2023 19:22:00 +0900 Subject: [PATCH] make 64-bit time_t back to unsigned it has been changed by https://github.com/apache/nuttx/pull/10303 without any explicit mentions. i suppose it was a mistake. see https://github.com/apache/nuttx/pull/8201 and referenced PRs for previous discussions. --- include/nuttx/fs/hostfs.h | 2 +- include/sys/types.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nuttx/fs/hostfs.h b/include/nuttx/fs/hostfs.h index 24f41c9e736..9d7d045bcfe 100644 --- a/include/nuttx/fs/hostfs.h +++ b/include/nuttx/fs/hostfs.h @@ -135,7 +135,7 @@ typedef int nuttx_fsid_t[2]; /* These must match the definition in include/time.h */ # ifdef CONFIG_SYSTEM_TIME64 -typedef int64_t nuttx_time_t; +typedef uint64_t nuttx_time_t; # else typedef uint32_t nuttx_time_t; # endif diff --git a/include/sys/types.h b/include/sys/types.h index e2b0745ce68..d19448d0d2f 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -249,7 +249,7 @@ typedef uint16_t sa_family_t; #ifdef CONFIG_SYSTEM_TIME64 typedef uint64_t clock_t; -typedef int64_t time_t; /* Holds time in seconds */ +typedef uint64_t time_t; /* Holds time in seconds */ #else typedef uint32_t clock_t; typedef uint32_t time_t; /* Holds time in seconds */