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

Commit b0ed0a0

Browse files
committed
Make __CMSG_* and __MHDR_END private
1 parent 210d4c8 commit b0ed0a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/sys/posix/sys/socket.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,17 +192,17 @@ version (linux)
192192
{
193193
extern (D)
194194
{
195-
size_t __CMSG_LEN(inout(cmsghdr)* cmsg) pure nothrow @nogc
195+
private size_t __CMSG_LEN(inout(cmsghdr)* cmsg) pure nothrow @nogc
196196
{
197197
return (cmsg.cmsg_len + size_t.sizeof -1) & cast(size_t)(~(size_t.sizeof - 1));
198198
}
199199

200-
inout(cmsghdr)* __CMSG_NEXT(inout(cmsghdr)* cmsg) pure nothrow @nogc
200+
private inout(cmsghdr)* __CMSG_NEXT(inout(cmsghdr)* cmsg) pure nothrow @nogc
201201
{
202202
return cmsg + __CMSG_LEN(cmsg);
203203
}
204204

205-
inout(msghdr)* __MHDR_END(inout(msghdr)* mhdr) pure nothrow @nogc
205+
private inout(msghdr)* __MHDR_END(inout(msghdr)* mhdr) pure nothrow @nogc
206206
{
207207
return cast(inout(msghdr)*)(mhdr.msg_control + mhdr.msg_controllen);
208208
}

0 commit comments

Comments
 (0)