diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-12-27 22:08:17 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-12-27 22:08:17 +0000 |
commit | 5efe1ec47fc5936056c9738c94285cab571537fe (patch) | |
tree | f799cf96c3301a2f7772e3d91a6ee7550c131030 | |
parent | d4979e09de25ae0ea89c31565b8ede2271d0ddb9 (diff) | |
parent | 8bd2586a7048689fe758507f90e6647110145968 (diff) |
Merge commit 'refs/top-bases/t/sendmsg-SCM_CREDS' into t/sendmsg-SCM_CREDSt/sendmsg-SCM_CREDS
-rw-r--r-- | sysdeps/mach/hurd/sendmsg.c | 4 |
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) { |