The count of chunks should really be an int32, not a size_t,
authorWayne Davison <wayned@samba.org>
Mon, 14 Feb 2005 08:13:47 +0000 (08:13 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 14 Feb 2005 08:13:47 +0000 (08:13 +0000)
because that's the maximum size we can transmit over the wire.

rsync.h

diff --git a/rsync.h b/rsync.h
index 488b401..49034ac 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -533,7 +533,7 @@ struct sum_buf {
 struct sum_struct {
        OFF_T flength;          /**< total file length */
        struct sum_buf *sums;   /**< points to info for each chunk */
-       size_t count;           /**< how many chunks */
+       int32 count;            /**< how many chunks */
        int32 blength;          /**< block_length */
        int32 remainder;        /**< flength % block_length */
        int s2length;           /**< sum2_length */