Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e31c48
)
added seed to file sum
author
Andrew Tridgell
<tridge@samba.org>
Tue, 2 Jul 1996 03:22:08 +0000
(
03:22
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 2 Jul 1996 03:22:08 +0000
(
03:22
+0000)
checksum.c
patch
|
blob
|
blame
|
history
diff --git
a/checksum.c
b/checksum.c
index
ba81358
..
809b09f
100644
(file)
--- a/
checksum.c
+++ b/
checksum.c
@@
-137,8
+137,11
@@
static char sumrbuf[CSUM_CHUNK];
void sum_init(void)
{
- MDbegin(&sumMD);
+ char s[4];
+ MDbegin(&sumMD);
sumresidue=0;
+ SIVAL(s,0,checksum_seed);
+ sum_update(s,4);
}
void sum_update(char *p,int len)