summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 22:08:27 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 22:08:27 +0000
commitb5a884970d64d941896590b2f8c537c18eb02512 (patch)
tree22eb71f6262baf919147799f4bb4f3c5bb5191f7 /sysdeps
parenta25d104d639983dfef18ee911d986c4179030073 (diff)
parent7f502f0aa68851dc073fbcf96ee52e2095000c6c (diff)
Merge commit 'refs/top-bases/tschwinge/Roger_Whittaker' into tschwinge/Roger_Whittaker
Diffstat (limited to 'sysdeps')
-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)
{