From 24875bb42262676d7bc24c3a7025bf8049332674 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sun, 10 May 2009 18:21:58 +0000 Subject: [PATCH] * libmisc/copydir.c: Added prototype of readlink_malloc(), and readlink_malloc() changed to static. --- ChangeLog | 5 +++++ libmisc/copydir.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dfa99dc7..f682fe9d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-05-10 Nicolas François + + * libmisc/copydir.c: Added prototype of readlink_malloc(), and + readlink_malloc() changed to static. + 2009-05-10 Nicolas François * src/su.c: Avoid redeclaration of root_pw. diff --git a/libmisc/copydir.c b/libmisc/copydir.c index c061e057..40628b81 100644 --- a/libmisc/copydir.c +++ b/libmisc/copydir.c @@ -63,6 +63,7 @@ static int copy_dir (const char *src, const char *dst, const struct stat *statp, const struct timeval mt[], long int uid, long int gid); #ifdef S_IFLNK +static char *readlink_malloc (const char *filename); static int copy_symlink (const char *src, const char *dst, const struct stat *statp, const struct timeval mt[], long int uid, long int gid); @@ -428,7 +429,7 @@ static int copy_dir (const char *src, const char *dst, * return NULL on error. * The return string shall be freed by the caller. */ -char *readlink_malloc (const char *filename) +static char *readlink_malloc (const char *filename) { size_t size = 1024;