net/rpmsg: fix typo in comment
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
afef9c2044
commit
498830d3f4
@ -324,7 +324,7 @@ static int rpmsg_socket_ept_cb(FAR struct rpmsg_endpoint *ept,
|
|||||||
|
|
||||||
if (len == msg->len)
|
if (len == msg->len)
|
||||||
{
|
{
|
||||||
/* SOCOK_STREAM */
|
/* SOCK_STREAM */
|
||||||
|
|
||||||
conn->recvpos += conn->recvlen;
|
conn->recvpos += conn->recvlen;
|
||||||
memcpy(conn->recvdata, buf, conn->recvlen);
|
memcpy(conn->recvdata, buf, conn->recvlen);
|
||||||
@ -333,7 +333,7 @@ static int rpmsg_socket_ept_cb(FAR struct rpmsg_endpoint *ept,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* SOCOK_DGRAM */
|
/* SOCK_DGRAM */
|
||||||
|
|
||||||
conn->recvpos += len;
|
conn->recvpos += len;
|
||||||
memcpy(conn->recvdata, buf + sizeof(uint32_t),
|
memcpy(conn->recvdata, buf + sizeof(uint32_t),
|
||||||
|
Loading…
Reference in New Issue
Block a user