* libmisc/copydir.c: Added prototype of readlink_malloc(), and

readlink_malloc() changed to static.
This commit is contained in:
nekral-guest 2009-05-10 18:21:58 +00:00
parent 74073db5db
commit 24875bb422
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-05-10 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/copydir.c: Added prototype of readlink_malloc(), and
readlink_malloc() changed to static.
2009-05-10 Nicolas François <nicolas.francois@centraliens.net>
* src/su.c: Avoid redeclaration of root_pw.

View File

@ -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;