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
@ -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…
x
Reference in New Issue
Block a user