Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions arch/sim/src/sim/sim_oneshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static inline void sim_timer_current(struct timespec *ts)

static inline void sim_reset_alarm(struct timespec *alarm)
{
alarm->tv_sec = UINT_MAX;
alarm->tv_sec = INT_MAX;
alarm->tv_nsec = NSEC_PER_SEC - 1;
}

Expand Down Expand Up @@ -281,7 +281,7 @@ static int sim_max_delay(struct oneshot_lowerhalf_s *lower,
{
DEBUGASSERT(ts != NULL);

ts->tv_sec = UINT_MAX;
ts->tv_sec = INT_MAX;
ts->tv_nsec = NSEC_PER_SEC - 1;
return OK;
}
Expand Down
4 changes: 2 additions & 2 deletions include/sys/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ typedef uint16_t sa_family_t;

#ifdef CONFIG_SYSTEM_TIME64
typedef uint64_t clock_t;
typedef uint64_t time_t; /* Holds time in seconds */
typedef int64_t time_t; /* Holds time in seconds */
#else
typedef uint32_t clock_t;
typedef uint32_t time_t; /* Holds time in seconds */
typedef int32_t time_t; /* Holds time in seconds */
#endif
typedef int clockid_t; /* Identifies one time base source */
typedef FAR void *timer_t; /* Represents one POSIX timer */
Expand Down