diff options
author | Wayne Davison <wayned@samba.org> | 2008-07-17 07:37:31 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2008-07-17 07:37:31 -0700 |
commit | 6d56efa6ea66afa2e6f4eb79d9dd5f3b54b723c3 (patch) | |
tree | 42baf860a22de3fe37b6536842189262ea9bd051 /xattrs.c | |
parent | 97dde6b6200aa0a3333e4f821e24dd5f0f91ec75 (diff) | |
download | rsync-6d56efa6ea66afa2e6f4eb79d9dd5f3b54b723c3.tar.gz |
Changed human_num() to big_num() with an extra arg so that it can
be used in place of all %.0f output idioms.
Diffstat (limited to 'xattrs.c')
-rw-r--r-- | xattrs.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -114,7 +114,7 @@ static int rsync_xal_compare_names(const void *x1, const void *x2) static ssize_t get_xattr_names(const char *fname) { ssize_t list_len; - double arg; + int64 arg; if (!namebuf) { namebuf_len = 1024; @@ -132,11 +132,11 @@ static ssize_t get_xattr_names(const char *fname) } else if (errno == ENOTSUP) return 0; else if (errno != ERANGE) { - arg = (double)namebuf_len; + arg = namebuf_len; got_error: rsyserr(FERROR_XFER, errno, - "get_xattr_names: llistxattr(\"%s\",%.0f) failed", - fname, arg); + "get_xattr_names: llistxattr(\"%s\",%s) failed", + fname, big_num(arg, 0)); return -1; } list_len = sys_llistxattr(fname, NULL, 0); |