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

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

.../glibc$ grep_glibc_prototype inet_pton
inet/arpa/inet.h:58:
extern int inet_pton (int __af, const char *__restrict __cp,
		      void *__restrict __buf) __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:50 +01:00 committed by Michael Kerrisk
parent cd18d63b1a
commit 6d1cb47e4e
1 changed files with 2 additions and 1 deletions

View File

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