diff --git a/find_path.c b/find_path.c index afb135562..01845c45b 100644 --- a/find_path.c +++ b/find_path.c @@ -63,7 +63,7 @@ extern char *malloc __P((size_t)); extern char *getenv __P((const char *)); extern char *strcpy __P((char *, const char *)); extern int fprintf __P((FILE *, const char *, ...)); -extern int readlink __P((const char *, char *, size_t)); +extern ssize_t readlink __P((const char *, char *, size_t)); extern int stat __P((const char *, struct stat *)); extern int lstat __P((const char *, struct stat *)); #ifdef HAVE_STRDUP diff --git a/sudo_realpath.c b/sudo_realpath.c index 2547823b8..6724ccb61 100644 --- a/sudo_realpath.c +++ b/sudo_realpath.c @@ -55,7 +55,7 @@ static char rcsid[] = "$Id$"; #ifndef STDC_HEADERS extern char *strcpy __P((char *, const char *)); -extern int readlink __P((const char *, char *, size_t)); +extern ssize_t readlink __P((const char *, char *, size_t)); extern int lstat __P((const char *, struct stat *)); #endif /* !STDC_HEADERS */