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

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

.../glibc$ grep_glibc_prototype getdate_r
time/time.h:297:
extern int getdate_r (const char *__restrict __string,
		      struct tm *__restrict __resbufp);
.../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-02-28 01:48:07 +01:00 committed by Michael Kerrisk
parent 79201b695e
commit 5e0058dce8
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ getdate, getdate_r \- convert a date-plus-time string to broken-down time
.PP
.B "#include <time.h>"
.PP
.BI "int getdate_r(const char *" string ", struct tm *" res );
.BI "int getdate_r(const char *restrict " string ", struct tm *restrict " res );
.fi
.PP
.RS -4