1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:37:46 +00:00

Style: Remove uses of NULL, substituting nullptr

This commit is contained in:
Matthew L. Curry 2020-10-13 00:00:06 -06:00 committed by Andreas Kling
parent 93f4388e45
commit 5d5c32cec1
7 changed files with 8 additions and 8 deletions

View file

@ -760,7 +760,7 @@ void* bsearch(const void* key, const void* base, size_t nmemb, size_t size, int
nmemb /= 2;
}
return NULL;
return nullptr;
}
div_t div(int numerator, int denominator)

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 NULL;
return nullptr;
return next;
}

View file

@ -132,7 +132,7 @@ CODE prioritynames[] = {
{ "none", INTERNAL_NOPRI },
{ "notice", LOG_NOTICE },
{ "warning", LOG_WARNING },
{ NULL, -1 },
{ nullptr, -1 },
};
CODE facilitynames[] = {
@ -158,7 +158,7 @@ CODE facilitynames[] = {
{ "syslog", LOG_SYSLOG },
{ "user", LOG_USER },
{ "uucp", LOG_UUCP },
{ NULL, -1 },
{ nullptr, -1 },
};
#endif