can_sendmsg_buffered: fix can_sendmsg param type mismatch error

Update the can_sendmsg() signature from "struct msghdr *msg" to
"const struct msghdr *msg" to match the updated sendmsg() prototype
and resolve compilation errors due to parameter type inconsistency.

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
guoshichao 2025-01-15 14:46:06 +08:00 committed by GUIDINGLI
parent 57637e5927
commit 3d45550da9

View file

@ -183,7 +183,7 @@ static uint32_t psock_send_eventhandler(FAR struct net_driver_s *dev,
*
****************************************************************************/
ssize_t can_sendmsg(FAR struct socket *psock, FAR struct msghdr *msg,
ssize_t can_sendmsg(FAR struct socket *psock, FAR const struct msghdr *msg,
int flags)
{
FAR struct net_driver_s *dev;