From: Martin Pool Date: Sun, 2 Dec 2001 12:37:48 +0000 (+0000) Subject: const-cast required for silly UNICOS headers X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/acf1af0cd976394e0540d2dd92ca3e31c2c1abc5 const-cast required for silly UNICOS headers --- diff --git a/tls.c b/tls.c index 93a8e1a5..d02a7a4c 100644 --- a/tls.c +++ b/tls.c @@ -84,7 +84,8 @@ static void list_file (const char *fname) buf.st_mtime = (time_t)0; buf.st_uid = buf.st_gid = 0; strcpy(linkbuf, " -> "); - readlink(fname, linkbuf+4, sizeof(linkbuf) - 4); + /* const-cast required for silly UNICOS headers */ + readlink((char *) fname, linkbuf+4, sizeof(linkbuf) - 4); } else { linkbuf[0] = 0; }