mirror of
https://github.com/apache/nuttx.git
synced 2026-10-24 07:18:45 +00:00
rpmsg/ping: Replace UINT_MAX with CLOCK_MAX
since clock_t may map to either 32-bit or 64-bit integer type, UINT_MAX may not be the maximum value of clock_t. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
9feac3b644
commit
42dad89211
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ static void rpmsg_ping_logout_rate(uint64_t len, clock_t avg)
|
|||
int rpmsg_ping(FAR struct rpmsg_endpoint *ept,
|
||||
FAR const struct rpmsg_ping_s *ping)
|
||||
{
|
||||
clock_t min = UINT_MAX;
|
||||
clock_t min = CLOCK_MAX;
|
||||
clock_t max = 0;
|
||||
uint64_t total = 0;
|
||||
uint32_t buf_len = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue