[03/14] getdate.3: SYNOPSIS: Use 'restrict' in prototypes

Message ID 20210228004817.122463-4-alx.manpages@gmail.com
State Not applicable
Headers
Series man3: SYNOPSIS: Use 'restrict' in prototypes (batch 2) |

Commit Message

Alejandro Colomar Feb. 28, 2021, 12:48 a.m. UTC
  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>
---
 man3/getdate.3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/man3/getdate.3 b/man3/getdate.3
index 1f8432303..5334b4bb6 100644
--- a/man3/getdate.3
+++ b/man3/getdate.3
@@ -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