aboutsummaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-17 00:30:43 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-17 00:30:43 +0200
commite26fff7c5aee64574917e9a46c6f08a1ba55f280 (patch)
tree5e9b9b72323f51ad5329893ff2fbde1130ae1d8f /c
parentupdate readme (diff)
downloadsha3sum-e26fff7c5aee64574917e9a46c6f08a1ba55f280.tar.gz
sha3sum-e26fff7c5aee64574917e9a46c6f08a1ba55f280.tar.bz2
sha3sum-e26fff7c5aee64574917e9a46c6f08a1ba55f280.tar.xz
m + fix for python version
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-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)