]> granicus.if.org Git - shadow/commitdiff
* libmisc/copydir.c: Added prototype of readlink_malloc(), and
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 10 May 2009 18:21:58 +0000 (18:21 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 10 May 2009 18:21:58 +0000 (18:21 +0000)
readlink_malloc() changed to static.

ChangeLog
libmisc/copydir.c

index dfa99dc745c3632a0ce3f340d5fe4f20665c98ee..f682fe9df6da6e77777acc518b1294325db0126c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index c061e057c39e48334ffffd99653f7cd479a305b6..40628b8127a79236d6bf7ed2d00ecee7dde69b92 100644 (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;