summaryrefslogtreecommitdiff
path: root/tls.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-12-02 12:37:48 +0000
committerMartin Pool <mbp@samba.org>2001-12-02 12:37:48 +0000
commitacf1af0cd976394e0540d2dd92ca3e31c2c1abc5 (patch)
tree48a76deedc4d73c1a7586aec1b14662489d71f87 /tls.c
parent62791bdfa2d7d0d335d1b8c2304feb28fa23a984 (diff)
downloadrsync-acf1af0cd976394e0540d2dd92ca3e31c2c1abc5.tar.gz
const-cast required for silly UNICOS headers
Diffstat (limited to 'tls.c')
-rw-r--r--tls.c3
1 files changed, 2 insertions, 1 deletions
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;
}