inet_ntop.3: SYNOPSIS: Use 'restrict' in prototypes

Both POSIX and glibc use 'restrict' in inet_ntop().
Let's use it here too.

.../glibc$ grep_glibc_prototype inet_ntop
inet/arpa/inet.h:64:
extern const char *inet_ntop (int __af, const void *__restrict __cp,
			      char *__restrict __buf, socklen_t __len)
     __THROW;
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-03-06 00:50:49 +01:00 committed by Michael Kerrisk
parent decc37b2f7
commit cd18d63b1a
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ inet_ntop \- convert IPv4 and IPv6 addresses from binary to text form
.nf
.B #include <arpa/inet.h>
.PP
.BI "const char *inet_ntop(int " "af" ", const void *" "src" ,
.BI " char *" "dst" ", socklen_t " "size" );
.BI "const char *inet_ntop(int " af ", const void *restrict " src ,
.BI " char *restrict " dst ", socklen_t " size );
.fi
.SH DESCRIPTION
This function converts the network address structure