lwip: fix compilation warning on recvmsg
This commit is patch to fix compilation warning on recvmsg.
- to prevent build compliation error, fix it
@@ -93,10 +93,10 @@ ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags)
uint8_t *buf = (uint8_t *)(msg->msg_iov->iov_base);
size_t len = msg->msg_iov->iov_len;
struct sockaddr *from = (struct sockaddr *)msg->msg_name;
- int *addrlen = &(msg->msg_namelen);
+ socklen_t *addrlen = &(msg->msg_namelen);
//printf("\n[Received IOTIVITY Packet][%s:%d] \n", __FUNCTION__, __LINE__);
- return recvfrom(sockfd, buf, len, flags, from, (socklen_t *) addrlen);
+ return recvfrom(sockfd, buf, len, flags, from, addrlen);
}
#endif /* CONFIG_NET */
