X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=cprogs%2Frcopy-repeatedly.c;h=6468e80cfadfa7c273333b391ce2981a3c2481ab;hb=8e6155d320853755d140f0cbd70399cf543cd31d;hp=fc2741d31b038bbcd2e7626bd20fa1e648a3256c;hpb=b4a4147e121ec4834a85f791aabad69cc3003c41;p=chiark-utils.git diff --git a/cprogs/rcopy-repeatedly.c b/cprogs/rcopy-repeatedly.c index fc2741d..6468e80 100644 --- a/cprogs/rcopy-repeatedly.c +++ b/cprogs/rcopy-repeatedly.c @@ -24,7 +24,6 @@ * * See the --help for options. */ - /* * rcopy-repeatedly is * Copyright (C) 2008 Ian Jackson @@ -46,7 +45,6 @@ * Foundation's website at www.fsf.org, or the GNU Project website at * www.gnu.org. */ - /* * protocol is: * server sends banner @@ -264,12 +262,9 @@ static void bandlimit_sendend(uint64_t bytes, int *interval_usec_update) { static void copyfile(FILE *sf, copyfile_die_fn *sdie, const char *sxi, FILE *df, copyfile_die_fn *ddie, const char *dxi, uint64_t lstart, int amsender) { - struct timespec ts_last; int now, r; uint64_t l=lstart, done=0; - ts_last= ts_sendstart; - while (l>0) { now= l < sizeof(mainbuf) ? l : sizeof(mainbuf); if (now > txblocksz) now= txblocksz;