mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
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>
This commit is contained in:
parent
04d85febb9
commit
0371c23623
@ -24,7 +24,8 @@
|
||||
|
||||
|
||||
ssize_t
|
||||
__readlink_chk (const char *path, void *buf, size_t len, size_t buflen)
|
||||
__readlink_chk (const char *__restrict path, char *__restrict buf, size_t len,
|
||||
size_t buflen)
|
||||
{
|
||||
if (len > buflen)
|
||||
__chk_fail ();
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user