Commit 3bc2d561 authored by Mike Hibler's avatar Mike Hibler

Exit with non-zero status if hash check fails.

parent 4fb4ab9c
* Copyright (c) 2000-2009 , 2011University of Utah and the Flux Group.
* Copyright (c) 2000-2011 University of Utah and the Flux Group.
* All rights reserved.
......@@ -226,8 +226,8 @@ main(int argc, char **argv)
if (gethashinfo(argv[0], &hashinfo))
dumphash(argv[0], hashinfo);
(void) checkhash(argv[1], hashinfo);
if (checkhash(argv[1], hashinfo))
......@@ -644,7 +644,7 @@ checkhash(char *name, struct hashinfo *hinfo)
printf("%llu bytes: read cycles: %llu, hash cycles: %llu, cmp cycles: %llu\n",
ndatabytes, rcycles, hcycles, ccycles);
return 0;
return badhashes;
static int
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment