]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Fix for UNICOS CC: first argument to readlink must not be const, or we
authorMartin Pool <mbp@samba.org>
Mon, 6 Aug 2001 12:16:20 +0000 (12:16 +0000)
committerMartin Pool <mbp@samba.org>
Mon, 6 Aug 2001 12:16:20 +0000 (12:16 +0000)
get an error.

flist.c

diff --git a/flist.c b/flist.c
index cda350822acca2c7bf9df042d324c18c860c14ba..27025df3f4793a8bb148f860e80676b65dc88c40 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -149,8 +149,7 @@ int readlink_stat(const char *Path, STRUCT_STAT *Buffer, char *Linkbuf)
                return -1;
        }
        if (S_ISLNK(Buffer->st_mode)) {
-               int l;
-               if ((l = readlink(Path,Linkbuf,MAXPATHLEN-1)) == -1) {
+               if (readlink((char *) Path, Linkbuf, MAXPATHLEN-1) == -1) {
                        return -1;
                }
                Linkbuf[l] = 0;