On Mon, Aug 29, 2022 at 12:18:49AM +0300, Vitaliy Makkoveev wrote: > On Sun, Aug 28, 2022 at 10:42:11PM +0200, Alexander Bluhm wrote: > > On Sun, Aug 28, 2022 at 10:51:31PM +0300, Vitaliy Makkoveev wrote: > > > Another candidate for future refactoring. Except the tcp(4) and unix(4) > > > cases we do nothing with passed `ub', but in all cases we return no > > > error. > > > > Instead of adding all these return(0) functions, we should return(0) > > in pru_sense() if .pru_sense == NULL. > > No problem. Updated diff.
> --- sys/sys/unpcb.h 28 Aug 2022 18:44:17 -0000 1.36 > +++ sys/sys/unpcb.h 28 Aug 2022 21:16:14 -0000 ... > +int uipc_sense(struct socket *, struct stat *u); Do not put variable name in prototype. Remove the u OK bluhm@