summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 22:08:13 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 22:08:13 +0000
commit4a5661ebc1f8459cb9f3647367b2872d00bcc3e8 (patch)
tree610d8d155f249e74718fb30e7617c7362f223d24
parent27a808bf9afbb7d13e8fef10205bca9848ba84a2 (diff)
parent8bd2586a7048689fe758507f90e6647110145968 (diff)
Merge branch 't/sendmsg-SCM_RIGHTS' into refs/top-bases/tschwinge/Roger_Whittaker
-rw-r--r--sysdeps/mach/hurd/sendmsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/sendmsg.c b/sysdeps/mach/hurd/sendmsg.c
index fb3a14befe..4e95d79332 100644
--- a/sysdeps/mach/hurd/sendmsg.c
+++ b/sysdeps/mach/hurd/sendmsg.c
@@ -110,7 +110,7 @@ __libc_sendmsg (int fd, const struct msghdr *message, int flags)
/* Allocate enough room for ports. */
cmsg = CMSG_FIRSTHDR (message);
- for (; cmsg; cmsg = CMSG_NXTHDR (message, cmsg))
+ for (; cmsg; cmsg = CMSG_NXTHDR ((struct msghdr *) message, cmsg))
if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_RIGHTS)
nports += (cmsg->cmsg_len - CMSG_ALIGN (sizeof (struct cmsghdr)))
/ sizeof (int);
@@ -123,7 +123,7 @@ __libc_sendmsg (int fd, const struct msghdr *message, int flags)
nports = 0;
for (cmsg = CMSG_FIRSTHDR (message);
cmsg;
- cmsg = CMSG_NXTHDR (message, cmsg))
+ cmsg = CMSG_NXTHDR ((struct msghdr *) message, cmsg))
{
if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_RIGHTS)
{