diff options
| author | Wayne Davison <wayned@samba.org> | 2004-04-09 20:22:44 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2004-04-09 20:22:44 +0000 |
| commit | 0e1d98ae921697d9a44114a59123dc141ffe6afd (patch) | |
| tree | 324956eceb20306fdb8a87e1ecd4262e84e4a6aa /tls.c | |
| parent | 04575bcab50c688b26560928e7c0bcd3b6ee32e8 (diff) | |
| download | android_external_rsync-0e1d98ae921697d9a44114a59123dc141ffe6afd.tar.gz android_external_rsync-0e1d98ae921697d9a44114a59123dc141ffe6afd.tar.bz2 android_external_rsync-0e1d98ae921697d9a44114a59123dc141ffe6afd.zip | |
Silence compiler warnings on Solaris.
Diffstat (limited to 'tls.c')
| -rw-r--r-- | tls.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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, |
