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

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

.../glibc$ grep_glibc_prototype putgrent
grp/grp.h:93:
extern int putgrent (const struct group *__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:21 +01:00 committed by Michael Kerrisk
parent 4beb303a63
commit 5952677947
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ putgrent \- write a group database entry to a file
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <grp.h>
.PP
.BI "int putgrent(const struct group *" grp ", FILE *" stream );
.BI "int putgrent(const struct group *restrict " grp \
", FILE *restrict " stream );
.fi
.SH DESCRIPTION
The