summaryrefslogtreecommitdiffstats
path: root/qacp.c
diff options
context:
space:
mode:
Diffstat (limited to 'qacp.c')
-rw-r--r--qacp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/qacp.c b/qacp.c
index ed5a973..4e809cd 100644
--- a/qacp.c
+++ b/qacp.c
@@ -226,9 +226,8 @@ qacp_recvonefile(const char *host, const char *srcfile, const char *destfile)
int insd;
int outfd;
char buf[BUFSIZ];
- ssize_t nread;
- ssize_t nwrote;
- ssize_t nleft;
+ ssize_t nread, nwrote;
+ off_t nleft;
struct qp_rstat_pkt *rstatp;
int rstaterrno;
@@ -284,8 +283,9 @@ qacp_recvonefile(const char *host, const char *srcfile, const char *destfile)
if (nleft != 0) {
unlink(destfile);
fprintf(stderr, "Short file transfer of %s, "
- "%lld bytes lost, wanted %lld\n", srcfile, nleft,
- rstatp->qp_st_size);
+ "%lld bytes lost, wanted %lld\n", srcfile,
+ (long long int)nleft,
+ (long long int)rstatp->qp_st_size);
}
close(sd);