From bd337e58c31063d7fe88d9ebadaa06c23292cbe0 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Thu, 20 Nov 2008 12:23:44 +0000 Subject: - Fix issues that prevented rsync support from working. --- contrib/csup/rsyncfile.c | 2 +- contrib/csup/updater.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/csup/rsyncfile.c b/contrib/csup/rsyncfile.c index f256ccfd0b71..3d5c8a56883e 100644 --- a/contrib/csup/rsyncfile.c +++ b/contrib/csup/rsyncfile.c @@ -140,7 +140,7 @@ rsync_chooseblocksize(size_t fsize) } bestrem = MAXBLOCKSIZE; - for (bs = losearch; bs <= hisearch;) { + for (bs = losearch; bs <= hisearch; bs++) { rem = fsize % bs; if (rem < bestrem) { bestrem = rem; diff --git a/contrib/csup/updater.c b/contrib/csup/updater.c index 8ae043ed85d4..fd67f6124a78 100644 --- a/contrib/csup/updater.c +++ b/contrib/csup/updater.c @@ -2078,7 +2078,7 @@ updater_rsync(struct updater *up, struct file_update *fup, size_t blocksize) if (proto_get_sizet(&line, &blockcount, 10) != 0) goto bad; /* Read blocks from original file. */ - lseek(orig, SEEK_SET, (blocksize * blockstart)); + lseek(orig, (blocksize * blockstart), SEEK_SET); error = UPDATER_ERR_MSG; for (blocknum = 0; blocknum < blockcount; blocknum++) { nbytes = read(orig, buf, blocksize); -- cgit v1.3