summaryrefslogtreecommitdiff
path: root/checksum.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-04-08 08:29:04 +0000
committerMartin Pool <mbp@samba.org>2002-04-08 08:29:04 +0000
commitd37d8d7b693df25558dbb210799263236bbb7d81 (patch)
tree454f0efd6739b6f0de0fed329421bd65f9950832 /checksum.c
parentf4a0483ab8a3f0195d6dd2b82efdaefcf1e00963 (diff)
downloadrsync-d37d8d7b693df25558dbb210799263236bbb7d81.tar.gz
Doc sum_update
Diffstat (limited to 'checksum.c')
-rw-r--r--checksum.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/checksum.c b/checksum.c
index 0ce7259d..3decf78b 100644
--- a/checksum.c
+++ b/checksum.c
@@ -140,7 +140,15 @@ void sum_init(void)
sum_update(s,4);
}
-void sum_update(char *p,int len)
+/**
+ * Feed data into an MD4 accumulator, md. The results may be
+ * retrieved using sum_end(). md is used for different purposes at
+ * different points during execution.
+ *
+ * @todo Perhaps get rid of md and just pass in the address each time.
+ * Very slightly clearer and slower.
+ **/
+void sum_update(char *p, int len)
{
int i;
if (len + sumresidue < CSUM_CHUNK) {