mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
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:
parent
57637e5927
commit
3d45550da9
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue