From 3d45550da9adc7fbd7d44899701b343b4e11d6c8 Mon Sep 17 00:00:00 2001 From: guoshichao Date: Wed, 15 Jan 2025 14:46:06 +0800 Subject: [PATCH] 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 --- net/can/can_sendmsg_buffered.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/can/can_sendmsg_buffered.c b/net/can/can_sendmsg_buffered.c index 7b0df1ad873..17967fc34ab 100644 --- a/net/can/can_sendmsg_buffered.c +++ b/net/can/can_sendmsg_buffered.c @@ -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;