Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Make __CMSG_* and __MHDR_END private
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-tan committed Jun 4, 2022
1 parent 210d4c8 commit b0ed0a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/sys/posix/sys/socket.d
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,17 @@ version (linux)
{
extern (D)
{
size_t __CMSG_LEN(inout(cmsghdr)* cmsg) pure nothrow @nogc
private size_t __CMSG_LEN(inout(cmsghdr)* cmsg) pure nothrow @nogc
{
return (cmsg.cmsg_len + size_t.sizeof -1) & cast(size_t)(~(size_t.sizeof - 1));
}

inout(cmsghdr)* __CMSG_NEXT(inout(cmsghdr)* cmsg) pure nothrow @nogc
private inout(cmsghdr)* __CMSG_NEXT(inout(cmsghdr)* cmsg) pure nothrow @nogc
{
return cmsg + __CMSG_LEN(cmsg);
}

inout(msghdr)* __MHDR_END(inout(msghdr)* mhdr) pure nothrow @nogc
private inout(msghdr)* __MHDR_END(inout(msghdr)* mhdr) pure nothrow @nogc
{
return cast(inout(msghdr)*)(mhdr.msg_control + mhdr.msg_controllen);
}
Expand Down

0 comments on commit b0ed0a0

Please sign in to comment.