rpmsg/rpmsg_ping: tenative fix for build issue
rpmsg_ping.c is blocking CI checks for RPTUN related patches like #11673. this patch simply fix the compilation issue of rpmsg_ping.c: - line 191: overflow conversion from "long unsigned int" to "unsigned int" - line 226: "sendlen" used uninitialized Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
parent
0967eb4c24
commit
b258680949
@ -188,11 +188,11 @@ static void rpmsg_ping_logout_rate(uint64_t len, clock_t avg)
|
|||||||
int rpmsg_ping(FAR struct rpmsg_endpoint *ept,
|
int rpmsg_ping(FAR struct rpmsg_endpoint *ept,
|
||||||
FAR const struct rpmsg_ping_s *ping)
|
FAR const struct rpmsg_ping_s *ping)
|
||||||
{
|
{
|
||||||
clock_t min = ULONG_MAX;
|
clock_t min = UINT_MAX;
|
||||||
clock_t max = 0;
|
clock_t max = 0;
|
||||||
uint64_t total = 0;
|
uint64_t total = 0;
|
||||||
uint32_t buf_len = 0;
|
uint32_t buf_len = 0;
|
||||||
int send_len;
|
int send_len = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!ept || !ping || ping->times <= 0)
|
if (!ept || !ping || ping->times <= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user