Fix buzh_update() signature - dedup - deduplicating backup program HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit cf6f545f03714670fd72ca10e6e4293154d4a28f DIR parent c972b40120719fc67dc193b36c31db8b9f3319e7 HTML 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: M chunker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR 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]; }