mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03: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:
committed by
Siddhesh Poyarekar
parent
04d85febb9
commit
0371c23623
@ -24,7 +24,8 @@
|
|||||||
|
|
||||||
|
|
||||||
ssize_t
|
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)
|
if (len > buflen)
|
||||||
__chk_fail ();
|
__chk_fail ();
|
||||||
|
@ -20,7 +20,8 @@
|
|||||||
|
|
||||||
|
|
||||||
ssize_t
|
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)
|
size_t buflen)
|
||||||
{
|
{
|
||||||
if (len > buflen)
|
if (len > buflen)
|
||||||
|
Reference in New Issue
Block a user