This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 1ec63e1701 make 64-bit time_t back to unsigned
1ec63e1701 is described below
commit 1ec63e170167fe424ff2b486d378974fbb706a0a
Author: YAMAMOTO Takashi <[email protected]>
AuthorDate: Fri Dec 29 19:22:00 2023 +0900
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 24f41c9e73..9d7d045bcf 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 e2b0745ce6..d19448d0d2 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 */