mirror of https://github.com/mkerrisk/man-pages
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:
parent
5952677947
commit
fbe8945399
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue