iFix buzh_update() signature - dedup - deduplicating backup program Err bitreich.org 70 hgit clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ URL:git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ bitreich.org 70 1Log /scm/dedup/log.gph bitreich.org 70 1Files /scm/dedup/files.gph bitreich.org 70 1Refs /scm/dedup/refs.gph bitreich.org 70 1Tags /scm/dedup/tag bitreich.org 70 1README /scm/dedup/file/README.gph bitreich.org 70 1LICENSE /scm/dedup/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit cf6f545f03714670fd72ca10e6e4293154d4a28f /scm/dedup/commit/cf6f545f03714670fd72ca10e6e4293154d4a28f.gph bitreich.org 70 1parent c972b40120719fc67dc193b36c31db8b9f3319e7 /scm/dedup/commit/c972b40120719fc67dc193b36c31db8b9f3319e7.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Sat, 2 Mar 2019 11:28:40 +0000 Err bitreich.org 70 i Err bitreich.org 70 iFix buzh_update() signature Err bitreich.org 70 i Err bitreich.org 70 iThe caller was passing the in/out bytes swapped. Change the prototype Err bitreich.org 70 ibecause it makes more sense this way, reading it left to right. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M chunker.c | 2 +- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 1 insertion(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/chunker.c b/chunker.c /scm/dedup/file/chunker.c.gph bitreich.org 70 i@@ -75,7 +75,7 @@ buzh_init(uint8_t *buf, size_t winsize) Err bitreich.org 70 i } Err bitreich.org 70 i Err bitreich.org 70 i static inline uint32_t Err bitreich.org 70 i-buzh_update(uint32_t fp, uint8_t in, uint8_t out, size_t winsize) Err bitreich.org 70 i+buzh_update(uint32_t fp, uint8_t out, uint8_t in, size_t winsize) Err bitreich.org 70 i { Err bitreich.org 70 i return ROTL(fp, 1) ^ ROTL(buz[out], winsize % 32) ^ buz[in]; Err bitreich.org 70 i } Err bitreich.org 70 .