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:
Xiang Xiao 2024-02-16 14:15:30 +08:00 committed by Petro Karashchenko
parent 9feac3b644
commit 42dad89211

View File

@ -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;