Index | Thread | Search

From:
Todd C. Miller <millert@openbsd.org>
Subject:
Re: const inpcb
To:
Alexander Bluhm <alexander.bluhm@gmx.net>
Cc:
tech@openbsd.org
Date:
Tue, 09 Jan 2024 08:09:48 -0700

Download raw body.

Thread
  • Alexander Bluhm:

    const inpcb

    • Alexander Bluhm:

      const inpcb

      • Todd C. Miller:

        const inpcb

On Tue, 09 Jan 2024 16:05:42 +0100, Alexander Bluhm wrote:

> On Fri, Jan 05, 2024 at 06:47:27PM +0100, Alexander Bluhm wrote:
> > Hi,
> > 
> > Having const struct inpcb * makes argueing about socket lock easier.
> > We know where read-only access is.  I have already converted most
> > of them, these functions were missed.
> > 
> > ok?
>
> Anyone?

This makes it easier to reason about what can and can't change inp.
OK millert@

 - todd