about summary refs log tree commit diff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2019-12-29 17:47:52 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-12-29 17:49:41 +0100
commiteb87a46c5630580d9556907dc8a61b298b462919 (patch)
tree919427d8032b1645f88e1faa438f1cf21eeeb820 /sysdeps/mach
parent4288c548da30c5b70d3b531e425d271cf12c51d3 (diff)
downloadglibc-eb87a46c5630580d9556907dc8a61b298b462919.tar.gz
glibc-eb87a46c5630580d9556907dc8a61b298b462919.tar.xz
glibc-eb87a46c5630580d9556907dc8a61b298b462919.zip
hurd sendmsg: Fix warning on calling CMSG_*HDR
Diffstat (limited to 'sysdeps/mach')
-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 0c19b3223c..3d7317cec4 100644
--- a/sysdeps/mach/hurd/sendmsg.c
+++ b/sysdeps/mach/hurd/sendmsg.c
@@ -108,7 +108,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);
@@ -119,7 +119,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)
 	{