dedup

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

commit 652d81e641e2b9dfbf181c2170ae944640be514f
parent 411c06d567b2a7f3569d879fe3706a56449c5073
Author: sin <sin@2f30.org>
Date:   Sat,  2 Mar 2019 15:40:15 +0000

Remove unused argument from match_pattern()

Diffstat:
Mchunker.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chunker.c b/chunker.c @@ -81,7 +81,7 @@ buzh_update(uint32_t fp, uint8_t out, uint8_t in, size_t size) } static inline int -match_pattern(struct chunker *chunker, size_t chunk_size, uint32_t fp) +match_pattern(size_t chunk_size, uint32_t fp) { if (chunk_size >= BLKSIZE_MAX) return 1; @@ -115,7 +115,7 @@ get_chunk_size(struct chunker *chunker) if (i > 0) fp = buzh_update(fp, bp[i - 1], bp[i + WINSIZE - 1], WINSIZE); - if (match_pattern(chunker, i + WINSIZE, fp)) + if (match_pattern(i + WINSIZE, fp)) return i + WINSIZE; }