dedup

deduplicating backup program
git clone git://git.2f30.org/dedup
Log | Files | Refs | README | LICENSE

commit cf6f545f03714670fd72ca10e6e4293154d4a28f
parent c972b40120719fc67dc193b36c31db8b9f3319e7
Author: sin <sin@2f30.org>
Date:   Sat,  2 Mar 2019 11:28:40 +0000

Fix buzh_update() signature

The caller was passing the in/out bytes swapped.  Change the prototype
because it makes more sense this way, reading it left to right.

Diffstat:
Mchunker.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chunker.c b/chunker.c @@ -75,7 +75,7 @@ buzh_init(uint8_t *buf, size_t winsize) } static inline uint32_t -buzh_update(uint32_t fp, uint8_t in, uint8_t out, size_t winsize) +buzh_update(uint32_t fp, uint8_t out, uint8_t in, size_t winsize) { return ROTL(fp, 1) ^ ROTL(buz[out], winsize % 32) ^ buz[in]; }