diff options
Diffstat (limited to 'qacp.c')
-rw-r--r-- | qacp.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |