[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hurd,commited] hurd sendmsg: Fix warning on calling CMSG_*HDR
From: |
Samuel Thibault |
Subject: |
Re: [hurd,commited] hurd sendmsg: Fix warning on calling CMSG_*HDR |
Date: |
Sun, 29 Dec 2019 19:46:24 +0100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Andreas Schwab, le dim. 29 déc. 2019 19:08:37 +0100, a ecrit:
> On Dez 29 2019, Samuel Thibault wrote:
>
> > Andreas Schwab, le dim. 29 déc. 2019 18:12:02 +0100, a ecrit:
> >> > - for (; cmsg; cmsg = CMSG_NXTHDR (message, cmsg))
> >> > + for (; cmsg; cmsg = CMSG_NXTHDR ((struct msghdr *) message, cmsg))
> >>
> >> Why is the first argument of __cmsg_nxthdr not const?
> >
> > I don't know, it is so on other systems as well.
> >
> > I guess an issue is that if it was const, CMSG_NXTHDR would only
> > be allowed to return a const,
>
> The return value is not based on the first argument.
Oh, right. Then I don't know, I just see it so everywhere else.
Samuel