Skip to content

Commit

Permalink
net/utils: fix build break
Browse files Browse the repository at this point in the history
Change-Id: I7bc0854190d8296c9349b3d91d00bf444f5af671
Signed-off-by: chao an <[email protected]>
  • Loading branch information
anchao committed Jul 14, 2023
1 parent ce47772 commit cf7f6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/utils/net_cmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ FAR void *cmsg_append(FAR struct msghdr *msg, int level, int type,
memcpy(cmsgdata, value, value_len);
}

(FAR char *)msg->msg_control += cmsgspace;
msg->msg_control = (FAR char *)msg->msg_control + cmsgspace;
msg->msg_controllen -= cmsgspace;

return cmsgdata;
Expand Down

0 comments on commit cf7f6bc

Please sign in to comment.