POSIX specifies that the parameters of getpeername() shall be 'restrict'. Glibc uses 'restrict' too. Let's use it here too. ...... .../glibc$ grep_glibc_prototype getpeername socket/sys/socket.h:130: extern int getpeername (int __fd, __SOCKADDR_ARG __addr, socklen_t *__restrict __len) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx> --- man2/getpeername.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/getpeername.2 b/man2/getpeername.2 index ef84b9ef1..71f818f4b 100644 --- a/man2/getpeername.2 +++ b/man2/getpeername.2 @@ -46,8 +46,8 @@ getpeername \- get name of connected peer socket .nf .B #include <sys/socket.h> .PP -.BI "int getpeername(int " sockfd ", struct sockaddr *" addr \ -", socklen_t *" addrlen ); +.BI "int getpeername(int " sockfd ", struct sockaddr *restrict " addr , +.BI " socklen_t *restrict " addrlen ); .fi .SH DESCRIPTION .BR getpeername () -- 2.30.0