mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-11 17:04:37 +08: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)) > \
|
+ ALIGN_D(sizeof(struct cmsghdr)) > \
|
||||||
(u8_t *)((mhdr)->msg_control) + (mhdr)->msg_controllen) ? \
|
(u8_t *)((mhdr)->msg_control) + (mhdr)->msg_controllen) ? \
|
||||||
(struct cmsghdr *)NULL : \
|
(struct cmsghdr *)NULL : \
|
||||||
(struct cmsghdr *)((u8_t *)(cmsg) + \
|
(struct cmsghdr *)((void*)((u8_t *)(cmsg) + \
|
||||||
ALIGN_H((cmsg)->cmsg_len))))
|
ALIGN_H((cmsg)->cmsg_len)))))
|
||||||
|
|
||||||
#define CMSG_DATA(cmsg) ((void*)((u8_t *)(cmsg) + \
|
#define CMSG_DATA(cmsg) ((void*)((u8_t *)(cmsg) + \
|
||||||
ALIGN_D(sizeof(struct cmsghdr))))
|
ALIGN_D(sizeof(struct cmsghdr))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user