(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
This commit is contained in:
Assar Westerlund
1999-11-20 20:49:41 +00:00
parent 69a1b9e92f
commit e93c46c31d

View File

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