[Bug 275990] sctp: restrict mismatch between manpages and headers
Date: Fri, 29 Dec 2023 01:09:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275990 Bug ID: 275990 Summary: sctp: restrict mismatch between manpages and headers Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: lexi.freebsd@le-fay.org while improving the sctp manpages, i noticed that sctp_recvmsg is declared like this in the manpage: ssize_t sctp_recvmsg(int s, void *msg, size_t len, struct sockaddr * restrict from, socklen_t * restrict fromlen, struct sctp_sndrcvinfo *sinfo, int *flags); however, in <netinet/net_uio.h> it's declared like this: ssize_t sctp_recvmsg(int, void *, size_t, struct sockaddr *, socklen_t *, struct sctp_sndrcvinfo *, int *); either restrict should be removed from the manpage, or it should be added to the header. i can submit a patch for either of those options (as i'm working on the manpages anyway) but i'm not sure which is correct. RFC 6458 doesn't include restrict in the declaration. -- You are receiving this mail because: You are the assignee for the bug.