summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-10-14 13:57:51 +0200
committerAndreas Kling <kling@serenityos.org>2020-10-14 13:57:51 +0200
commit1208f3fd75226f9a89c89b09a1b77663795d82eb (patch)
treef08ddd251954f5fcf318b4ec16805d2f012d9b5c /Libraries
parentc1823d8a3436b7b46e546d23cc9c54762e1181d2 (diff)
downloadserenity-1208f3fd75226f9a89c89b09a1b77663795d82eb.zip
LibC: We still need to use NULL (not nullptr) in C headers
Thanks to @alimpfard for noticing this.
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibC/sys/socket.h2
-rw-r--r--Libraries/LibC/syslog.h4
2 files changed, 3 insertions, 3 deletions
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