From: Wayne Davison Date: Fri, 9 Apr 2004 20:22:44 +0000 (+0000) Subject: Silence compiler warnings on Solaris. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/0e1d98ae921697d9a44114a59123dc141ffe6afd Silence compiler warnings on Solaris. --- diff --git a/tls.c b/tls.c index 3af402fd..78feae3a 100644 --- a/tls.c +++ b/tls.c @@ -114,9 +114,11 @@ static void list_file (const char *fname) /* TODO: Perhaps escape special characters in fname? */ printf("%s ", permbuf); - if (IS_DEVICE(buf.st_mode)) - printf("%6d,%5d", major(buf.st_rdev), minor(buf.st_rdev)); - else /* NB: use double for size because it might not fit in a long. */ + if (IS_DEVICE(buf.st_mode)) { + printf("%5ld,%6ld", + (long)major(buf.st_rdev), + (long)minor(buf.st_rdev)); + } else /* NB: use double for size since it might not fit in a long. */ printf("%12.0f", (double)buf.st_size); printf(" %6ld.%-6ld %6ld %s %s%s\n", (long)buf.st_uid, (long)buf.st_gid, (long)buf.st_nlink,