public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/fw/builtin-syscalls-4] hurd sendmsg: Fix warning on calling CMSG_*HDR
@ 2019-12-31 10:49 Florian Weimer
0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2019-12-31 10:49 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=eb87a46c5630580d9556907dc8a61b298b462919
commit eb87a46c5630580d9556907dc8a61b298b462919
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Sun Dec 29 17:47:52 2019 +0100
hurd sendmsg: Fix warning on calling CMSG_*HDR
Diff:
---
sysdeps/mach/hurd/sendmsg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/mach/hurd/sendmsg.c b/sysdeps/mach/hurd/sendmsg.c
index 0c19b32..3d7317c 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)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-31 10:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-31 10:49 [glibc/fw/builtin-syscalls-4] hurd sendmsg: Fix warning on calling CMSG_*HDR Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).