From: Alejandro Colomar Date: Fri, 5 Mar 2021 23:50:50 +0000 (+0100) Subject: inet_pton.3: SYNOPSIS: Use 'restrict' in prototypes X-Git-Tag: man-pages-5.11~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d1cb47e4ebe47ee18ee10a2275d3a1ddd3264e9;p=thirdparty%2Fman-pages.git 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 Signed-off-by: Michael Kerrisk --- diff --git a/man3/inet_pton.3 b/man3/inet_pton.3 index 304aafb1ef..f367fc6d2c 100644 --- a/man3/inet_pton.3 +++ b/man3/inet_pton.3 @@ -31,7 +31,8 @@ inet_pton \- convert IPv4 and IPv6 addresses from text to binary form .nf .B #include .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