(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:
@@ -182,7 +182,7 @@ make_fileinfo(const char *filename, struct fileinfo *file, int flags)
|
|||||||
}
|
}
|
||||||
if(S_ISLNK(st->st_mode)) {
|
if(S_ISLNK(st->st_mode)) {
|
||||||
int n;
|
int n;
|
||||||
n = readlink(filename, buf, sizeof(buf));
|
n = readlink((char *)filename, buf, sizeof(buf));
|
||||||
if(n >= 0) {
|
if(n >= 0) {
|
||||||
buf[n] = '\0';
|
buf[n] = '\0';
|
||||||
file->link = strdup(buf);
|
file->link = strdup(buf);
|
||||||
|
Reference in New Issue
Block a user