1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:07:34 +00:00

LibC: We still need to use NULL (not nullptr) in C headers

Thanks to @alimpfard for noticing this.
This commit is contained in:
Andreas Kling 2020-10-14 13:57:51 +02:00
parent c1823d8a34
commit 1208f3fd75
2 changed files with 3 additions and 3 deletions

View file

@ -169,7 +169,7 @@ static inline struct cmsghdr* CMSG_NXTHDR(struct msghdr* msg, struct cmsghdr* cm
struct cmsghdr* next = (struct cmsghdr*)((char*)cmsg + CMSG_ALIGN(cmsg->cmsg_len));
unsigned offset = (char*)next - (char*)msg->msg_control;
if (msg->msg_controllen < offset + sizeof(struct cmsghdr))
return nullptr;
return NULL;
return next;
}