diff --git a/Libraries/LibC/sys/socket.h b/Libraries/LibC/sys/socket.h index e39092c0d7..298b863388 100644 --- a/Libraries/LibC/sys/socket.h +++ b/Libraries/LibC/sys/socket.h @@ -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; } diff --git a/Libraries/LibC/syslog.h b/Libraries/LibC/syslog.h index 1a396e67f6..77f3e419eb 100644 --- a/Libraries/LibC/syslog.h +++ b/Libraries/LibC/syslog.h @@ -132,7 +132,7 @@ CODE prioritynames[] = { { "none", INTERNAL_NOPRI }, { "notice", LOG_NOTICE }, { "warning", LOG_WARNING }, - { nullptr, -1 }, + { NULL, -1 }, }; CODE facilitynames[] = { @@ -158,7 +158,7 @@ CODE facilitynames[] = { { "syslog", LOG_SYSLOG }, { "user", LOG_USER }, { "uucp", LOG_UUCP }, - { nullptr, -1 }, + { NULL, -1 }, }; #endif