aboutsummaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
Diffstat (limited to 'c')
-rw-r--r--c/sha3sum.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/c/sha3sum.c b/c/sha3sum.c
index d3657d7..8872f6d 100644
--- a/c/sha3sum.c
+++ b/c/sha3sum.c
@@ -294,7 +294,7 @@ int main(int argc, char** argv)
free(*linger);
free(linger);
free(files);
- return 2;
+ return 0;
}
else
{
@@ -505,6 +505,15 @@ int main(int argc, char** argv)
}
+ fprintf(stderr, "Bitrate: %li\n", r);
+ fprintf(stderr, "Capacity: %li\n", c);
+ fprintf(stderr, "Word size: %li\n", w);
+ fprintf(stderr, "State size: %li\n", s);
+ fprintf(stderr, "Output Size: %li\n", o);
+ fprintf(stderr, "Iterations: %li\n", i);
+ fprintf(stderr, "Squeezes: %li\n", j);
+
+
if (r > s)
{
ERR("the bitrate must not be higher than the state size.");
@@ -522,15 +531,6 @@ int main(int argc, char** argv)
}
- fprintf(stderr, "Bitrate: %li", r);
- fprintf(stderr, "Capacity: %li", c);
- fprintf(stderr, "Word size: %li", w);
- fprintf(stderr, "State size: %li", s);
- fprintf(stderr, "Output Size: %li", o);
- fprintf(stderr, "Iterations: %li", i);
- fprintf(stderr, "Squeezes: %li", j);
-
-
if (fptr == 0)
files[fptr++] = null;
if (i < 1)