From e93c46c31ddcb8bc8df937e9782d7b463cb4a1ca Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 20 Nov 1999 20:49:41 +0000 Subject: [PATCH] (make_fileinfo): cast to allow for non-const prototypes of readlink git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7416 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftpd/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appl/ftp/ftpd/ls.c b/appl/ftp/ftpd/ls.c index e96ce3feb..5636d288a 100644 --- a/appl/ftp/ftpd/ls.c +++ b/appl/ftp/ftpd/ls.c @@ -182,7 +182,7 @@ make_fileinfo(const char *filename, struct fileinfo *file, int flags) } if(S_ISLNK(st->st_mode)) { int n; - n = readlink(filename, buf, sizeof(buf)); + n = readlink((char *)filename, buf, sizeof(buf)); if(n >= 0) { buf[n] = '\0'; file->link = strdup(buf);