summaryrefslogtreecommitdiffstats
path: root/qacp.c
diff options
context:
space:
mode:
authorNate Straz <nstraz@redhat.com>2006-11-16 04:17:02 +0000
committerNathan Straz <nstraz@redhat.com>2008-09-23 09:37:46 -0400
commit9fc82fc82e7248a598b8c8bedd86cecb3c10d1e9 (patch)
tree1234bdb063d6ae9feed841546cda5ed710409ec6 /qacp.c
parent5d90b7ceb5e0bd2fd41ded8ec706b04cacfc647c (diff)
downloadqarsh-9fc82fc82e7248a598b8c8bedd86cecb3c10d1e9.tar.gz
qarsh-9fc82fc82e7248a598b8c8bedd86cecb3c10d1e9.tar.xz
qarsh-9fc82fc82e7248a598b8c8bedd86cecb3c10d1e9.zip
Use off_t instead of size_t so we can transfer files larger than 2GB.
I changed all formats from %zd to %lld, but this adds a lot of warnings because off_t isn't the same as long long int to the compiler. I don't know if there is a way to avoid the warnings on all platforms.
Diffstat (limited to 'qacp.c')
-rw-r--r--qacp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qacp.c b/qacp.c
index c9d76d7..b2b9286 100644
--- a/qacp.c
+++ b/qacp.c
@@ -282,7 +282,7 @@ qacp_recvonefile(const char *host, const char *srcfile, const char *destfile)
if (nleft != 0) {
unlink(destfile);
fprintf(stderr, "Short file transfer of %s, "
- "%zd bytes lost, wanted %ld\n", srcfile, nleft,
+ "%lld bytes lost, wanted %lld\n", srcfile, nleft,
rstatp->qp_st_size);
}