summaryrefslogtreecommitdiff
path: root/t_stub.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2017-11-07 14:01:13 -0800
committerWayne Davison <wayned@samba.org>2017-11-07 14:01:13 -0800
commit416e719bea4f5466c8dd2b34cac0059b6ff84ff3 (patch)
tree44865d457dd60e5f1707fe280e7f24eaf80e80b3 /t_stub.c
parent9f5dc9309ddbbffa77e27fb2058d0e688ff57c58 (diff)
downloadrsync-416e719bea4f5466c8dd2b34cac0059b6ff84ff3.tar.gz
More archaic-checksum improvements. This makes the len vars clearer
and ensures that only the flist code gets the 2-byte digest len.
Diffstat (limited to 't_stub.c')
-rw-r--r--t_stub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/t_stub.c b/t_stub.c
index fc1ee3b9..0c49d9cb 100644
--- a/t_stub.c
+++ b/t_stub.c
@@ -98,7 +98,7 @@ filter_rule_list daemon_filter_list;
return "tester";
}
- int csum_len_for_type(int cst)
+ int csum_len_for_type(int cst, int flg)
{
- return cst ? 16 : 1;
+ return cst || !flg ? 16 : 1;
}