aboutsummaryrefslogtreecommitdiff
path: root/debug/readlinkat_chk.c
diff options
context:
space:
mode:
authorFrederic Berat <fberat@redhat.com>2023-06-20 20:19:03 +0200
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2023-06-22 00:21:06 -0400
commit0371c236233ee7e491937435952c60f50f7e45ea (patch)
treef309c387e7169485b66fc229e9cc136262a15380 /debug/readlinkat_chk.c
parent04d85febb9dd61a65045e10a8ba4add5367b239d (diff)
downloadglibc-0371c236233ee7e491937435952c60f50f7e45ea.zip
glibc-0371c236233ee7e491937435952c60f50f7e45ea.tar.gz
glibc-0371c236233ee7e491937435952c60f50f7e45ea.tar.bz2
debug/readlink{, at}_chk.c: Harmonize declaration and definition
The declaration and definition of these routines aren't consistent. Make the definition of __readlink_chk and __readlinkat_chk match the declaration of the routines they fortify. While there are no problems today this avoids any future potential problems related to the mismatch. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'debug/readlinkat_chk.c')
-rw-r--r--debug/readlinkat_chk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/debug/readlinkat_chk.c b/debug/readlinkat_chk.c
index 03feac9..163dec8 100644
--- a/debug/readlinkat_chk.c
+++ b/debug/readlinkat_chk.c
@@ -20,7 +20,8 @@
ssize_t
-__readlinkat_chk (int fd, const char *path, void *buf, size_t len,
+__readlinkat_chk (int fd, const char *__restrict path,
+ char *__restrict buf, size_t len,
size_t buflen)
{
if (len > buflen)