mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Try to fix alignment warnings in CMSG_NXTHDR()
This commit is contained in:
parent
eac45ca284
commit
728aaeb528
@ -159,8 +159,8 @@ struct cmsghdr {
|
||||
+ ALIGN_D(sizeof(struct cmsghdr)) > \
|
||||
(u8_t *)((mhdr)->msg_control) + (mhdr)->msg_controllen) ? \
|
||||
(struct cmsghdr *)NULL : \
|
||||
(struct cmsghdr *)((u8_t *)(cmsg) + \
|
||||
ALIGN_H((cmsg)->cmsg_len))))
|
||||
(struct cmsghdr *)((void*)((u8_t *)(cmsg) + \
|
||||
ALIGN_H((cmsg)->cmsg_len)))))
|
||||
|
||||
#define CMSG_DATA(cmsg) ((void*)((u8_t *)(cmsg) + \
|
||||
ALIGN_D(sizeof(struct cmsghdr))))
|
||||
|
Loading…
Reference in New Issue
Block a user