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

glibc uses 'restrict' in putpwent().
Let's use it here too.

.../glibc$ grep_glibc_prototype putpwent
pwd/pwd.h:102:
extern int putpwent (const struct passwd *__restrict __p,
		     FILE *__restrict __f);
.../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-08 19:53:22 +01:00 committed by Michael Kerrisk
parent 5952677947
commit fbe8945399
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ putpwent \- write a password file entry
.B #include <sys/types.h>
.B #include <pwd.h>
.PP
.BI "int putpwent(const struct passwd *" p ", FILE *" stream );
.BI "int putpwent(const struct passwd *restrict " p \
", FILE *restrict " stream );
.fi
.PP
.RS -4