ct/lc_ct_cmp: improve interface
Return 0xffffffff if arguments compare equal, 0 otherwise. Change all consumers accordingly.
This commit is contained in:
parent
ad42d99e0b
commit
52ab9ca179
5 changed files with 12 additions and 9 deletions
|
@ -212,7 +212,7 @@ main(int argc, char *argv[])
|
|||
* be the full-length hash.
|
||||
*/
|
||||
if (taglen != taglenarg ||
|
||||
lc_ct_cmp(buf, tag, taglen) != 0) {
|
||||
!lc_ct_cmp(buf, tag, taglen)) {
|
||||
if (verbose) {
|
||||
fprintf(stderr, "tag (%zu, %zu, %zu)\n", taglen,
|
||||
taglenarg, olen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue