From c88ca682ef8ee2cfea99ce3a50e702166cbe2121 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Mon, 6 Aug 2001 12:16:20 +0000 Subject: [PATCH] Fix for UNICOS CC: first argument to readlink must not be const, or we get an error. --- flist.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flist.c b/flist.c index cda35082..27025df3 100644 --- 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; -- 2.34.1