aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-14 09:11:33 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-14 09:11:33 +0100
commit25d6ee32451e2814364c9051ad27c59c9f63787a (patch)
treee34403448284b32f79147dd45f3f47ac6e5d1a27 /src/common.c
parentfinish --check support (diff)
downloadsha3sum-25d6ee32451e2814364c9051ad27c59c9f63787a.tar.gz
sha3sum-25d6ee32451e2814364c9051ad27c59c9f63787a.tar.bz2
sha3sum-25d6ee32451e2814364c9051ad27c59c9f63787a.tar.xz
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index 0826996..e9bdaf2 100644
--- a/src/common.c
+++ b/src/common.c
@@ -272,7 +272,7 @@ static int check(const libkeccak_spec_t* restrict spec, long squeezes, const cha
libkeccak_unhex(correct_binary, correct_hash);
if ((r = memcmp(correct_binary, hashsum, length)))
bad_found = 1;
- printf("%s: %s\n", filename, r ? "OK" : "Fail");
+ printf("%s: %s\n", filename, !r ? "OK" : "Fail");
return 0;
}